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 作成します。 呼び出し元は、 および Application パイプをTransport手動で設定する必要があります。

DefaultConnectionContext(String)

事前割り当てを回避するために、 パイプなしの を DefaultConnectionContext 作成します。 呼び出し元は、 および Application パイプをTransport手動で設定する必要があります。

DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe)

指定された パイプと application パイプを使用して DefaultConnectionContext をtransport作成します。

プロパティ

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 取得します (接続がある場合)。

適用対象