Table of Contents

Class GatewayClient

Namespace
OpenShell.Gateway
Assembly
OpenShell.Sdk.dll

Builds clients from gateways registered on disk by the OpenShell CLI.

public static class GatewayClient
Inheritance
GatewayClient
Inherited Members

Methods

Connect(string?, GatewayConnectOptions?)

Connects to the named gateway, or the active one when name is null.

public static OpenShellClient Connect(string? name = null, GatewayConnectOptions? options = null)

Parameters

name string
options GatewayConnectOptions

Returns

OpenShellClient

CreateOptions(GatewayMetadata, GatewayConnectOptions?)

Derives client options (address, TLS, authentication) from a registration.

public static OpenShellClientOptions CreateOptions(GatewayMetadata config, GatewayConnectOptions? options = null)

Parameters

config GatewayMetadata
options GatewayConnectOptions

Returns

OpenShellClientOptions