Class WebSocketDeviceBuilderExtensions

Namespace
ProtoTest.Devices.WebSocket
Assembly
ProtoTest.Devices.WebSocket.dll

Registers a WebSocket device client with AddDevices.

public static class WebSocketDeviceBuilderExtensions
Inheritance
WebSocketDeviceBuilderExtensions
Inherited Members

Methods

AddWebSocketClient(ProtoDeviceBuilder, string, string?, string?, Func<ProtoExecutionContext, string, string>?, Action<WebSocketDeviceOptions>?)

Declares a named device client over WebSocket. Pass path (or an explicit address, or a resolveAddress for anything more dynamic); under an application the address resolves from the application's address. When the application runs in-process and the in-process transport is registered (AddInProcessWebSocketDevices<TProgram>()), the path is used through its TestServer instead, so one registration covers every mode. http(s) addresses become ws(s).

public static ProtoDeviceClientBuilder AddWebSocketClient(this ProtoDeviceBuilder devices, string name, string? path = null, string? address = null, Func<ProtoExecutionContext, string, string>? resolveAddress = null, Action<WebSocketDeviceOptions>? configure = null)

Parameters

devices ProtoDeviceBuilder
name string
path string
address string
resolveAddress Func<ProtoExecutionContext, string, string>
configure Action<WebSocketDeviceOptions>

Returns

ProtoDeviceClientBuilder