共用方式為


DefaultConnectionContext 類別

定義

的預設實作 ConnectionContext

public ref class DefaultConnectionContext : Microsoft::AspNetCore::Connections::ConnectionContext, IDisposable, Microsoft::AspNetCore::Connections::Features::IConnectionIdFeature, Microsoft::AspNetCore::Connections::Features::IConnectionItemsFeature, Microsoft::AspNetCore::Connections::Features::IConnectionLifetimeFeature, Microsoft::AspNetCore::Connections::Features::IConnectionTransportFeature, Microsoft::AspNetCore::Connections::Features::IConnectionUserFeature
public ref class DefaultConnectionContext : Microsoft::AspNetCore::Connections::ConnectionContext, Microsoft::AspNetCore::Connections::Features::IConnectionEndPointFeature, Microsoft::AspNetCore::Connections::Features::IConnectionIdFeature, Microsoft::AspNetCore::Connections::Features::IConnectionItemsFeature, Microsoft::AspNetCore::Connections::Features::IConnectionLifetimeFeature, Microsoft::AspNetCore::Connections::Features::IConnectionTransportFeature, Microsoft::AspNetCore::Connections::Features::IConnectionUserFeature
public class DefaultConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext, IDisposable, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IConnectionUserFeature
public class DefaultConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IConnectionEndPointFeature, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IConnectionUserFeature
type DefaultConnectionContext = class
    inherit ConnectionContext
    interface IDisposable
    interface IConnectionIdFeature
    interface IConnectionItemsFeature
    interface IConnectionTransportFeature
    interface IConnectionUserFeature
    interface IConnectionLifetimeFeature
type DefaultConnectionContext = class
    inherit ConnectionContext
    interface IConnectionIdFeature
    interface IConnectionItemsFeature
    interface IConnectionTransportFeature
    interface IConnectionUserFeature
    interface IConnectionLifetimeFeature
    interface IConnectionEndPointFeature
Public Class DefaultConnectionContext
Inherits ConnectionContext
Implements IConnectionIdFeature, IConnectionItemsFeature, IConnectionLifetimeFeature, IConnectionTransportFeature, IConnectionUserFeature, IDisposable
Public Class DefaultConnectionContext
Inherits ConnectionContext
Implements IConnectionEndPointFeature, IConnectionIdFeature, IConnectionItemsFeature, IConnectionLifetimeFeature, IConnectionTransportFeature, IConnectionUserFeature
繼承
DefaultConnectionContext
繼承
實作

建構函式

DefaultConnectionContext()

DefaultConnectionContext建立不含管道的 ,以避免預先配置。 呼叫端應該手動設定 TransportApplication 管道。

DefaultConnectionContext(String)

DefaultConnectionContext建立不含管道的 ,以避免預先配置。 呼叫端應該手動設定 TransportApplication 管道。

DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe)

使用指定的 transportapplication 管道建立 DefaultConnectionCoNtext。

屬性

Application

的預設實作 ConnectionContext

ConnectionClosed

取得或設定 CancellationToken 關閉連接時所觸發的 。

ConnectionId

取得或設定連接識別碼。

Features

取得這個連接上可用的伺服器和中介軟體所提供的功能集合。

Items

取得或設定與連接相關聯的專案。

LocalEndPoint

取得或設定本機 EndPoint

LocalEndPoint

取得或設定這個連接的本機端點。

(繼承來源 ConnectionContext)
RemoteEndPoint

取得或設定遠端 EndPoint

RemoteEndPoint

取得或設定這個連接的遠端端點。

(繼承來源 ConnectionContext)
Transport

取得或設定連接的傳輸。

User

取得或設定與連接相關聯的使用者。

方法

Abort()

的預設實作 ConnectionContext

Abort()

中止基礎連線。

(繼承來源 ConnectionContext)
Abort(ConnectionAbortedException)

中止基礎連線。

Abort(ConnectionAbortedException)

中止基礎連線。

(繼承來源 ConnectionContext)
Dispose()

的預設實作 ConnectionContext

DisposeAsync()

釋放基礎連線的資源。

DisposeAsync()

釋放基礎連線的資源。

(繼承來源 ConnectionContext)

擴充方法

GetHttpContext(ConnectionContext)

HttpContext如果有連接,則取得與連接相關聯的 。

適用於