Freigeben über


FakeHostingExtensions.Configure Methode

Definition

Macht IHostBuilder für Änderungen über einen Delegaten verfügbar.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ Configure(Microsoft::Extensions::Hosting::IHostBuilder ^ builder, Action<Microsoft::Extensions::Hosting::IHostBuilder ^> ^ configure);
public static Microsoft.Extensions.Hosting.IHostBuilder Configure (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.Extensions.Hosting.IHostBuilder> configure);
static member Configure : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function Configure (builder As IHostBuilder, configure As Action(Of IHostBuilder)) As IHostBuilder

Parameter

builder
IHostBuilder

Eine IHostBuilder-Instanz.

configure
Action<IHostBuilder>

Konfiguriert die IHostBuilder instance.

Gibt zurück

Die IHostBuilder-Instanz.

Hinweise

Entwickelt, um die Hostkonfiguration in Komponententests zu vereinfachen, indem allgemeine Konfigurationsmethoden definiert werden.

Gilt für: