HttpConnection クラス

定義

HTTP ベースのトランスポートを使用して ASP.NET Core ConnectionHandler に接続するために使用されます。

public ref class HttpConnection : Microsoft::AspNetCore::Connections::ConnectionContext, Microsoft::AspNetCore::Connections::Features::IConnectionInherentKeepAliveFeature
public class HttpConnection : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IConnectionInherentKeepAliveFeature
type HttpConnection = class
    inherit ConnectionContext
    interface IConnectionInherentKeepAliveFeature
Public Class HttpConnection
Inherits ConnectionContext
Implements IConnectionInherentKeepAliveFeature
継承
HttpConnection
継承
実装

コンストラクター

HttpConnection(HttpConnectionOptions, ILoggerFactory)

HttpConnection クラスの新しいインスタンスを初期化します。

HttpConnection(Uri)

HttpConnection クラスの新しいインスタンスを初期化します。

HttpConnection(Uri, HttpTransportType)

HttpConnection クラスの新しいインスタンスを初期化します。

HttpConnection(Uri, HttpTransportType, ILoggerFactory)

HttpConnection クラスの新しいインスタンスを初期化します。

プロパティ

ConnectionClosed

クライアント接続が閉じられたときにトリガーされます。

(継承元 ConnectionContext)
ConnectionId

接続 ID を取得または設定します。

Features

この接続で使用できるサーバーとミドルウェアによって提供される機能のコレクションを取得します。

Items

この接続のスコープ内でデータを共有するために使用できるキー/値コレクションを取得または設定します。

LocalEndPoint

この接続のローカル エンドポイントを取得または設定します。

(継承元 ConnectionContext)
RemoteEndPoint

この接続のリモート エンドポイントを取得または設定します。

(継承元 ConnectionContext)
Transport

この接続のデータの IDuplexPipe 読み取りまたは書き込みに使用できる を取得または設定します。

メソッド

Abort()

基になる接続を中止します。

(継承元 ConnectionContext)
Abort(ConnectionAbortedException)

基になる接続を中止します。

(継承元 ConnectionContext)
DisposeAsync()

接続を破棄します。

StartAsync(CancellationToken)

接続を開始します。

StartAsync(TransferFormat, CancellationToken)

指定した転送形式を使用して接続を開始します。

明示的なインターフェイスの実装

IConnectionInherentKeepAliveFeature.HasInherentKeepAlive

接続に固有のキープアライブ概念があるかどうかを取得します。

拡張メソッド

GetHttpContext(ConnectionContext)

接続に関連付けられている を HttpContext 取得します (接続がある場合)。

適用対象