IWebTransportSession.OpenUnidirectionalStreamAsync(CancellationToken) Method

Definition

Opens a new unidirectional output stream.

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)

Parameters

cancellationToken
CancellationToken

The cancellation token used to cancel the operation.

Returns

The unidirectional stream that was opened.

Applies to