Class TransportConnector
Provides methods for establishing transport connections used for the RFB protocol.
Inheritance
System.Object
TransportConnector
Implements
Namespace: MarcusW.VncClient.Protocol.Implementation.Services.Transports
Assembly: MarcusW.VncClient.dll
Syntax
public class TransportConnector : object, ITransportConnector
Constructors
| Improve this Doc View SourceTransportConnector(RfbConnectionContext)
Initializes a new instance of the TransportConnector.
Declaration
public TransportConnector(RfbConnectionContext context)
Parameters
Type | Name | Description |
---|---|---|
RfbConnectionContext | context | The connection context. |
Methods
| Improve this Doc View SourceConnectAsync(CancellationToken)
Connects to the specified endpoint and returns the resulting ITransport.
Declaration
public Task<ITransport> ConnectAsync(CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<ITransport> | The open transport. |