共用方式為


MultiplexedConnectionContext.AcceptAsync(CancellationToken) 方法

定義

以非同步方式接受連線上的傳入資料流程。

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)

參數

cancellationToken
CancellationToken

傳回

適用於