MultiplexedConnectionContext.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.
Asynchronously accept an incoming stream on the connection.
public abstract System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.ConnectionContext?> AcceptAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member AcceptAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.ConnectionContext>
Public MustOverride Function AcceptAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of ConnectionContext)
Parameters
- cancellationToken
- CancellationToken