IWebTransportSession.OpenUnidirectionalStreamAsync(CancellationToken) 方法

定义

打开新的单向输出流。

public System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.ConnectionContext?> OpenUnidirectionalStreamAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member OpenUnidirectionalStreamAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.ConnectionContext>
Public Function OpenUnidirectionalStreamAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of ConnectionContext)

参数

cancellationToken
CancellationToken

用于取消操作的取消标记。

返回

打开的单向流。

适用于