Share via


IHttpWebTransportFeature.AcceptAsync(CancellationToken) Method

Definition

Accept the session request and allow streams to start being used.

public System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Http.Features.IWebTransportSession> AcceptAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member AcceptAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Http.Features.IWebTransportSession>
Public Function AcceptAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of IWebTransportSession)

Parameters

cancellationToken
CancellationToken

The cancellation token to cancel waiting for the session.

Returns

An instance of a WebTransportSession which will be used to control the connection.

Applies to