RemoteTerminalOptions
Namespace: Hex1b
Assembly: Hex1b.dll
Configures a remote terminal WebSocket connection and its opening HTTP request.
csharp
public sealed class RemoteTerminalOptionsInheritance
Object → RemoteTerminalOptions
Methods
ConfigureHttpHandler(Action<SocketsHttpHandler>)
Adds a callback that configures the HTTP handler used to send the opening request.
Parameters:
configure(Action<SocketsHttpHandler>): The callback that configures the HTTP handler.
csharp
public void ConfigureHttpHandler(Action<SocketsHttpHandler> configure)ConfigureRequest(Action<HttpRequestMessage>)
Adds a callback that can mutate each outgoing WebSocket opening request.
Parameters:
configure(Action<HttpRequestMessage>): The callback that configures the outgoing request.
csharp
public void ConfigureRequest(Action<HttpRequestMessage> configure)ConfigureWebSocket(Action<ClientWebSocketOptions>)
Adds a callback that configures the underlying WebSocket before connecting.
Parameters:
configure(Action<ClientWebSocketOptions>): The callback that configures the WebSocket options.
csharp
public void ConfigureWebSocket(Action<ClientWebSocketOptions> configure)SetRequestHeader(string, string?)
Adds or replaces a header on the WebSocket opening request.
Parameters:
headerName(String): The name of the header to configure.headerValue(String): The header value, or null to remove it.
csharp
public void SetRequestHeader(string headerName, string? headerValue)