Jaa


StreamingTransportClient.ConnectAsync Method

Definition

Overloads

ConnectAsync()

The task used to establish a connection for this client.

ConnectAsync(IDictionary<String,String>)

Establish a connection passing along additional headers.

ConnectAsync(IDictionary<String,String>, CancellationToken)

Establish a client connection passing along additional headers, and a cancellation token.

ConnectAsync()

The task used to establish a connection for this client.

public System.Threading.Tasks.Task ConnectAsync ();
abstract member ConnectAsync : unit -> System.Threading.Tasks.Task
override this.ConnectAsync : unit -> System.Threading.Tasks.Task
Public Function ConnectAsync () As Task

Returns

A Task representing the asynchronous operation.

Implements

Applies to

ConnectAsync(IDictionary<String,String>)

Establish a connection passing along additional headers.

public System.Threading.Tasks.Task ConnectAsync (System.Collections.Generic.IDictionary<string,string> requestHeaders);
abstract member ConnectAsync : System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task
override this.ConnectAsync : System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task
Public Function ConnectAsync (requestHeaders As IDictionary(Of String, String)) As Task

Parameters

requestHeaders
IDictionary<String,String>

Dictionary of header name and header value to be passed during connection. Generally, you will need channelID and Authorization.

Returns

A Task representing the asynchronous operation.

Implements

Applies to

ConnectAsync(IDictionary<String,String>, CancellationToken)

Establish a client connection passing along additional headers, and a cancellation token.

public System.Threading.Tasks.Task ConnectAsync (System.Collections.Generic.IDictionary<string,string> requestHeaders, System.Threading.CancellationToken cancellationToken);
member this.ConnectAsync : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ConnectAsync (requestHeaders As IDictionary(Of String, String), cancellationToken As CancellationToken) As Task

Parameters

requestHeaders
IDictionary<String,String>

Dictionary of header name and header value to be passed during connection. Generally, you will need channelID and Authorization.

cancellationToken
CancellationToken

CancellationToken for the client connection.

Returns

A Task representing the asynchronous operation.

Applies to