ListenOptions クラス

定義

Kestrel がバインドまたは開く必要がある既に IPEndPoint開いているソケットの 、Unix ドメイン ソケット パス、名前付きパイプ名、またはファイル記述子について説明します。

public ref class ListenOptions : Microsoft::AspNetCore::Server::Kestrel::Transport::Abstractions::Internal::IEndPointInformation
public ref class ListenOptions : Microsoft::AspNetCore::Connections::IConnectionBuilder, Microsoft::AspNetCore::Server::Kestrel::Transport::Abstractions::Internal::IEndPointInformation
public ref class ListenOptions : Microsoft::AspNetCore::Connections::IConnectionBuilder
public class ListenOptions : Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.IEndPointInformation
public class ListenOptions : Microsoft.AspNetCore.Connections.IConnectionBuilder, Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.IEndPointInformation
public class ListenOptions : Microsoft.AspNetCore.Connections.IConnectionBuilder
public class ListenOptions : Microsoft.AspNetCore.Connections.IConnectionBuilder, Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder
type ListenOptions = class
    interface IEndPointInformation
type ListenOptions = class
    interface IEndPointInformation
    interface IConnectionBuilder
type ListenOptions = class
    interface IConnectionBuilder
type ListenOptions = class
    interface IConnectionBuilder
    interface IMultiplexedConnectionBuilder
Public Class ListenOptions
Implements IEndPointInformation
Public Class ListenOptions
Implements IConnectionBuilder, IEndPointInformation
Public Class ListenOptions
Implements IConnectionBuilder
Public Class ListenOptions
Implements IConnectionBuilder, IMultiplexedConnectionBuilder
継承
ListenOptions
実装
Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.IEndPointInformation IConnectionBuilder IMultiplexedConnectionBuilder

プロパティ

ApplicationServices

アプリケーション IServiceProviderを取得します。

ConnectionAdapters

各接続StreamList<T>インターセプトおよび変換できるようにする を取得します。 および UseConnectionLogging(ListenOptions) 拡張メソッドによってUseHttps()構成されます。

DisableAltSvcHeader

"Alt-Svc" ヘッダーを応答ヘッダーに含めるかどうかを制御する値を取得または設定します。 "Alt-Svc" ヘッダーは、HTTP/1.1 および HTTP/2 接続を HTTP/3 にアップグレードするためにクライアントによって使用されます。

HTTP/1.1 または HTTP/2 が有効で、HTTP/3 が有効になっている場合 Protocols 、"Alt-Svc" ヘッダーは応答に自動的に含まれます。 "Alt-Svc" ヘッダー値がアプリによって既に設定されている場合は、変更されません。

EndPoint

EndPoint を取得します。

FileHandle

ソケットにバインドされたファイル記述子を取得します。

HandleType

Kestrel がバインドまたは開く必要がある既に IPEndPoint開いているソケットの 、Unix ドメイン ソケット パス、名前付きパイプ名、またはファイル記述子について説明します。

IPEndPoint

バインドされた IPEndPointを取得します。

KestrelServerOptions

リスナー オプションの KestrelServerOptions を取得します。 接続ミドルウェアが起動時にアプリケーションによって登録されたサービスを解決して使用できるようにします。

NoDelay

すべての接続に対して Nagle のアルゴリズムを有効にするには、false に設定します。

PipeName

名前パイプ サーバーにバインドされたパイプ名を取得します。

Protocols

このエンドポイントで有効になっているプロトコル。

SocketPath

Unix ドメイン ソケットへのバインドされた絶対パスを取得します。

Type

記述されているインターフェイスの種類:、 IPEndPointUnix ドメイン ソケット パス、またはファイル記述子のいずれか。

メソッド

Build()

をビルドします ConnectionDelegate

Clone(IPAddress)

2 つの IPEndpoint への複製に使用されます

ToString()

Kestrel がバインドまたは開く必要がある既に IPEndPoint開いているソケットの 、Unix ドメイン ソケット パス、名前付きパイプ名、またはファイル記述子について説明します。

Use(Func<ConnectionDelegate,ConnectionDelegate>)

接続パイプラインにミドルウェア デリゲートを追加します。 および UseConnectionLogging(ListenOptions) 拡張メソッドによってUseHttps()構成されます。

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

IMultiplexedConnectionBuilder.Build()

Kestrel がバインドまたは開く必要がある既に IPEndPoint開いているソケットの 、Unix ドメイン ソケット パス、名前付きパイプ名、またはファイル記述子について説明します。

IMultiplexedConnectionBuilder.Use(Func<MultiplexedConnectionDelegate,MultiplexedConnectionDelegate>)

Kestrel がバインドまたは開く必要がある既に IPEndPoint開いているソケットの 、Unix ドメイン ソケット パス、名前付きパイプ名、またはファイル記述子について説明します。

拡張メソッド

Run(IConnectionBuilder, Func<ConnectionContext,Task>)

指定 middleware した を接続に追加します。

Use(IConnectionBuilder, Func<ConnectionContext,ConnectionDelegate,Task>)

指定 middleware した を接続に追加します。 次の関数を呼び出していない場合は、代わりに を使用 Run(IConnectionBuilder, Func<ConnectionContext,Task>) します。

Use(IConnectionBuilder, Func<ConnectionContext,Func<Task>,Task>)

指定 middleware した を接続に追加します。 次の関数を呼び出していない場合は、代わりに を使用 Run(IConnectionBuilder, Func<ConnectionContext,Task>) します。

次に示すように、 を使用して Use(IConnectionBuilder, Func<ConnectionContext,ConnectionDelegate,Task>) パフォーマンスを向上させます。

builder.Use((context, next) =>
{
    return next(context);
});
UseConnectionHandler<TConnectionHandler>(IConnectionBuilder)

指定 TConnectionHandlerConnectionHandlerした を使用します。

UseConnectionTimeout(ListenOptions)

接続タイムアウト ミドルウェアを追加します。

UseConnectionLogging(ListenOptions)

接続から読み取られ、接続に書き込まれたバイトの詳細ログを出力します。

UseConnectionLogging(ListenOptions, String)

接続から読み取られ、接続に書き込まれたバイトの詳細ログを出力します。

UseHttps(ListenOptions)

使用可能な場合は、既定の証明書で HTTPS を使用するように Kestrel を構成します。 既定の証明書が構成されていない場合、これはスローされます。

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

HTTPS を使用するように Kestrel を構成します。 構成または ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>)を使用して指定された既定の証明書やその他の既定値は使用されません。

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

HTTPS を使用するように Kestrel を構成します。 構成または ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>)を使用して指定された既定の証明書やその他の既定値は使用されません。

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

HTTPS を使用するように Kestrel を構成します。 構成または ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>)を使用して指定された既定の証明書やその他の既定値は使用されません。

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

HTTPS を使用するように Kestrel を構成します。 構成または ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>)を使用して指定された既定の証明書やその他の既定値は使用されません。

UseHttps(ListenOptions, StoreName, String)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, StoreName, String, Boolean)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation, Action<HttpsConnectionAdapterOptions>)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, X509Certificate2)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, String)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, String, String)

HTTPS を使用するように Kestrel を構成します。

UseHttps(ListenOptions, String, String, Action<HttpsConnectionAdapterOptions>)

HTTPS を使用するように Kestrel を構成します。

UseHub<THub>(IConnectionBuilder)

指定した Hub 型をホストするように接続を構成します。

適用対象