Jaa


StreamingRequestHandler.ListenAsync Method

Definition

Overloads

ListenAsync()

Begins listening for incoming requests over this StreamingRequestHandler's server.

ListenAsync(CancellationToken)

Begins listening for incoming requests over this StreamingRequestHandler's server.

ListenAsync()

Begins listening for incoming requests over this StreamingRequestHandler's server.

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

Returns

A task that completes once the server is no longer listening.

Applies to

ListenAsync(CancellationToken)

Begins listening for incoming requests over this StreamingRequestHandler's server.

public virtual System.Threading.Tasks.Task ListenAsync (System.Threading.CancellationToken cancellationToken);
abstract member ListenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ListenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ListenAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

Cancellation token.

Returns

A task that completes once the server is no longer listening.

Applies to