Show / Hide Table of Contents

Class TransportConnector

Provides methods for establishing transport connections used for the RFB protocol.

Inheritance
System.Object
TransportConnector
Implements
ITransportConnector
Namespace: MarcusW.VncClient.Protocol.Implementation.Services.Transports
Assembly: MarcusW.VncClient.dll
Syntax
public class TransportConnector : object, ITransportConnector

Constructors

| Improve this Doc View Source

TransportConnector(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 Source

ConnectAsync(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.

Implements

ITransportConnector
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX