Share via


HttpConnection.StartAsync Method

Definition

Overloads

StartAsync(CancellationToken)

Starts the connection.

StartAsync(TransferFormat, CancellationToken)

Starts the connection using the specified transfer format.

StartAsync(CancellationToken)

Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs

Starts the connection.

public System.Threading.Tasks.Task StartAsync (System.Threading.CancellationToken cancellationToken = default);
member this.StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

The token to monitor for cancellation requests. The default value is None.

Returns

A Task that represents the asynchronous start.

Remarks

A connection cannot be restarted after it has stopped. To restart a connection a new instance should be created using the same options.

Applies to

StartAsync(TransferFormat, CancellationToken)

Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs

Starts the connection using the specified transfer format.

public System.Threading.Tasks.Task StartAsync (Microsoft.AspNetCore.Connections.TransferFormat transferFormat, System.Threading.CancellationToken cancellationToken = default);
member this.StartAsync : Microsoft.AspNetCore.Connections.TransferFormat * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync (transferFormat As TransferFormat, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

transferFormat
TransferFormat

The transfer format the connection should use.

cancellationToken
CancellationToken

The token to monitor for cancellation requests. The default value is None.

Returns

A Task that represents the asynchronous start.

Remarks

A connection cannot be restarted after it has stopped. To restart a connection a new instance should be created using the same options.

Applies to