Partager via


FakeHostingExtensions.Configure Méthode

Définition

Expose pour les IHostBuilder modifications via un délégué.

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

Paramètres

builder
IHostBuilder

Instance de IHostBuilder.

configure
Action<IHostBuilder>

Configure le IHostBuilder instance.

Retours

Instance IHostBuilder.

Remarques

Conçu pour faciliter la configuration de l’hôte dans les tests unitaires en définissant des méthodes de configuration courantes.

S’applique à