Class WebSocketTransportFactory
The factory to create WebSocketTransport client for address scheme "ws" and "wss".
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Amqp
Assembly: Amqp.Net.dll
Syntax
public class WebSocketTransportFactory : TransportProvider, IDisposable
Constructors
WebSocketTransportFactory()
Initializes a WebSocketTransportFactory object with the default subprotocol 'amqp'.
Declaration
public WebSocketTransportFactory()
WebSocketTransportFactory(String)
Initializes a WebSocketTransportFactory object with the specified subprotocol.
Declaration
public WebSocketTransportFactory(string subprotocol)
Parameters
Type | Name | Description |
---|---|---|
System.String | subprotocol | The subprotocol used for WebSocket upgrade. |
Properties
Options
Gets or sets the delegate to update the ClientWebSocketOptions of the underlying WebSocket object.
Declaration
public Action<ClientWebSocketOptions> Options { get; set; }
Property Value
Type | Description |
---|---|
System.Action<System.Net.WebSockets.ClientWebSocketOptions> |
Methods
CreateAsync(Address)
Creates a WebSocket transport for the given address.
Declaration
public override Task<IAsyncTransport> CreateAsync(Address address)
Parameters
Type | Name | Description |
---|---|---|
Address | address | The address to connect. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IAsyncTransport> | An IAsyncTransport object representing the transport. |
Overrides
Implements
System.IDisposable