Share via


IWebTransportSession 介面

定義

注意

您必須在專案檔中將 EnablePreviewFeatures 屬性設定為 True,並啟用專案中的預覽功能,才能使用此預覽 API。 如需詳細資訊,請參閱 https://aka.ms/dotnet-preview-features

WebTransport is a preview feature.

控制 WebTransport 會話的會話和資料流程。

public interface IWebTransportSession
type IWebTransportSession = interface
Public Interface IWebTransportSession

屬性

SessionId

WebTransport 會話的識別碼。

方法

Abort(Int32)

突然關閉 WebTransport 會話,並停止所有資料流程。

AcceptStreamAsync(CancellationToken)

傳回伺服器收到的下一個傳入資料流程順序。 資料流程可以是雙向或單向。

OpenUnidirectionalStreamAsync(CancellationToken)

開啟新的單向輸出資料流程。

適用於