HttpConnection クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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
public class HttpConnection : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IAuthenticationRefreshFeature, Microsoft.AspNetCore.Connections.Features.IConnectionInherentKeepAliveFeature
type HttpConnection = class
inherit ConnectionContext
interface IConnectionInherentKeepAliveFeature
type HttpConnection = class
inherit ConnectionContext
interface IConnectionInherentKeepAliveFeature
interface IAuthenticationRefreshFeature
Public Class HttpConnection
Inherits ConnectionContext
Implements IConnectionInherentKeepAliveFeature
Public Class HttpConnection
Inherits ConnectionContext
Implements IAuthenticationRefreshFeature, IConnectionInherentKeepAliveFeature
- 継承
- 継承
- 実装
コンストラクター
| Name | 説明 |
|---|---|
| HttpConnection(HttpConnectionOptions, ILoggerFactory) |
HttpConnection クラスの新しいインスタンスを初期化します。 |
| HttpConnection(Uri, HttpTransportType, ILoggerFactory) |
HttpConnection クラスの新しいインスタンスを初期化します。 |
| HttpConnection(Uri, HttpTransportType) |
HttpConnection クラスの新しいインスタンスを初期化します。 |
| HttpConnection(Uri) |
HttpConnection クラスの新しいインスタンスを初期化します。 |
プロパティ
| Name | 説明 |
|---|---|
| ConnectionClosed |
クライアント接続が閉じられたときにトリガーされます。 (継承元 ConnectionContext) |
| ConnectionId |
接続 ID を取得または設定します。 |
| Features |
この接続で使用できるサーバーとミドルウェアによって提供される機能のコレクションを取得します。 |
| Items |
この接続のスコープ内でデータを共有するために使用できるキー/値コレクションを取得または設定します。 |
| LocalEndPoint |
この接続のローカル エンドポイントを取得または設定します。 (継承元 ConnectionContext) |
| RemoteEndPoint |
この接続のリモート エンドポイントを取得または設定します。 (継承元 ConnectionContext) |
| Transport |
この接続のデータの読み取りまたは書き込みに使用できる IDuplexPipe を取得または設定します。 |
メソッド
| Name | 説明 |
|---|---|
| Abort() |
基になる接続を中止します。 (継承元 ConnectionContext) |
| Abort(ConnectionAbortedException) |
基になる接続を中止します。 (継承元 ConnectionContext) |
| DisposeAsync() |
接続を破棄します。 |
| StartAsync(CancellationToken) |
接続を開始します。 |
| StartAsync(TransferFormat, CancellationToken) |
指定した転送形式を使用して接続を開始します。 |
明示的なインターフェイスの実装
| Name | 説明 |
|---|---|
| IAuthenticationRefreshFeature.InitialTokenLifetime |
ネゴシエーション中にサーバーによって提供される初期トークンの有効期間を取得します。 サーバーがトークンの有効期間を提供しなかった場合は Null。 |
| IAuthenticationRefreshFeature.RefreshAuthenticationAsync(CancellationToken) |
新しい認証資格情報を使用してサーバーに更新要求を送信します。 更新されたトークンの有効期間を返します。指定されていない場合は null を返します。 |
| IConnectionInherentKeepAliveFeature.HasInherentKeepAlive |
接続に固有のキープアライブの概念があるかどうかを取得します。 |
拡張メソッド
| Name | 説明 |
|---|---|
| GetHttpContext(ConnectionContext) |
接続に関連付けられている HttpContext (存在する場合) を取得します。 |