BridgeRequest class

Namespace Runic.Application.Views in Runic.Application.Views 0.23.0

public sealed class BridgeRequest

One Views protocol request and the identities its transport authenticated.

Remarks

The client and connection keys come from the transport, never from the message: the window trusts them to scope presentations, interactions and pushes. A reconnect is a new connection with a new connection key.

Constructors

BridgeRequest

public BridgeRequest(ReadOnlyMemory<byte> message, string clientKey, string connectionKey)

Creates a request.

Parameters

message

The request, one JSON object as UTF-8. It is valid until the handler's task completes.

clientKey

The identity of the browser or process that sent the request.

connectionKey

The identity of the connection that carried the request.

Exceptions

ArgumentException

clientKey or connectionKey is empty.

Properties

ClientKey

public string ClientKey { get; }

The trusted identity of the browser or process that sent the request.

ConnectionKey

public string ConnectionKey { get; }

The trusted identity of the connection that carried the request.

Message

public ReadOnlyMemory<byte> Message { get; }

The request, one JSON object as UTF-8.