IHttpWebTransportFeature.AcceptAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for