KestrelServerOptions.Configure Methode

Definition

Überlädt

Configure(IConfiguration, Boolean)

Erstellt ein Konfigurationsladeprogramm für das Einrichten von Kestrel, was IConfiguration als Eingabe erfordert. Diese Konfiguration muss auf den Konfigurationsabschnitt für Kestrel festgelegt werden.

Configure()

Erstellt einen Konfigurationsladeprogramm zum Einrichten von Kestrel.

Configure(IConfiguration)

Erstellt ein Konfigurationsladeprogramm für das Einrichten von Kestrel, was IConfiguration als Eingabe erfordert. Diese Konfiguration muss auf den Konfigurationsabschnitt für Kestrel festgelegt werden. Rufen Sie Configure(IConfiguration, Boolean) auf, um dynamische Endpunktbindungsupdates zu aktivieren.

Configure(IConfiguration, Boolean)

Erstellt ein Konfigurationsladeprogramm für das Einrichten von Kestrel, was IConfiguration als Eingabe erfordert. Diese Konfiguration muss auf den Konfigurationsabschnitt für Kestrel festgelegt werden.

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Configure(Microsoft::Extensions::Configuration::IConfiguration ^ config, bool reloadOnChange);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure (Microsoft.Extensions.Configuration.IConfiguration config, bool reloadOnChange);
member this.Configure : Microsoft.Extensions.Configuration.IConfiguration * bool -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Configure (config As IConfiguration, reloadOnChange As Boolean) As KestrelConfigurationLoader

Parameter

config
IConfiguration

Der Konfigurationsabschnitt für Kestrel.

reloadOnChange
Boolean

Wenn true, aktualisiert Kestrel die Endpunktbindungen dynamisch, wenn sich die Konfiguration ändert. Dadurch werden nur Endpunkte neu geladen, die im Abschnitt "Endpunkte" Ihres configdefiniert sind. Im Code definierte Endpunkte werden nicht erneut geladen.

Gibt zurück

Ein KestrelConfigurationLoader für weitere Endpunktkonfiguration.

Gilt für:

Configure()

Erstellt einen Konfigurationsladeprogramm zum Einrichten von Kestrel.

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Configure();
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure ();
member this.Configure : unit -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Configure () As KestrelConfigurationLoader

Gibt zurück

Ein KestrelConfigurationLoader zum Konfigurieren von Endpunkten.

Gilt für:

Configure(IConfiguration)

Erstellt ein Konfigurationsladeprogramm für das Einrichten von Kestrel, was IConfiguration als Eingabe erfordert. Diese Konfiguration muss auf den Konfigurationsabschnitt für Kestrel festgelegt werden. Rufen Sie Configure(IConfiguration, Boolean) auf, um dynamische Endpunktbindungsupdates zu aktivieren.

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Configure(Microsoft::Extensions::Configuration::IConfiguration ^ config);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure (Microsoft.Extensions.Configuration.IConfiguration config);
member this.Configure : Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Configure (config As IConfiguration) As KestrelConfigurationLoader

Parameter

config
IConfiguration

Der Konfigurationsabschnitt für Kestrel.

Gibt zurück

Ein KestrelConfigurationLoader für weitere Endpunktkonfiguration.

Gilt für: