IWebTransportSession Interface

Definition

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

WebTransport is a preview feature.

Controls the session and streams of a WebTransport session.

public interface IWebTransportSession
type IWebTransportSession = interface
Public Interface IWebTransportSession

Properties

SessionId

The id of the WebTransport session.

Methods

Abort(Int32)

Abruptly close the WebTransport session and stop all the streams.

AcceptStreamAsync(CancellationToken)

Returns the next incoming stream in the order the server received it. The stream can be either bidirectional or unidirectional.

OpenUnidirectionalStreamAsync(CancellationToken)

Opens a new unidirectional output stream.

Applies to