Condividi tramite


FakeHost.CreateBuilder Metodo

Definizione

Overload

CreateBuilder()

Crea un'istanza di IHostBuilder per configurare e compilare l'host.

CreateBuilder(FakeHostOptions)

Crea un'istanza di IHostBuilder per configurare e compilare l'host.

CreateBuilder(Action<FakeHostOptions>)

Crea un'istanza di IHostBuilder per configurare e compilare l'host.

CreateBuilder()

Origine:
FakeHost.cs
Origine:
FakeHost.cs

Crea un'istanza di IHostBuilder per configurare e compilare l'host.

public:
 static Microsoft::Extensions::Hosting::IHostBuilder ^ CreateBuilder();
public static Microsoft.Extensions.Hosting.IHostBuilder CreateBuilder ();
static member CreateBuilder : unit -> Microsoft.Extensions.Hosting.IHostBuilder
Public Shared Function CreateBuilder () As IHostBuilder

Restituisce

Istanza di IHostBuilder.

Si applica a

CreateBuilder(FakeHostOptions)

Origine:
FakeHost.cs
Origine:
FakeHost.cs

Crea un'istanza di IHostBuilder per configurare e compilare l'host.

public:
 static Microsoft::Extensions::Hosting::IHostBuilder ^ CreateBuilder(Microsoft::Extensions::Hosting::Testing::FakeHostOptions ^ options);
public static Microsoft.Extensions.Hosting.IHostBuilder CreateBuilder (Microsoft.Extensions.Hosting.Testing.FakeHostOptions options);
static member CreateBuilder : Microsoft.Extensions.Hosting.Testing.FakeHostOptions -> Microsoft.Extensions.Hosting.IHostBuilder
Public Shared Function CreateBuilder (options As FakeHostOptions) As IHostBuilder

Parametri

options
FakeHostOptions

Istanza di FakeHostOptions.

Restituisce

Istanza di IHostBuilder.

Si applica a

CreateBuilder(Action<FakeHostOptions>)

Origine:
FakeHost.cs
Origine:
FakeHost.cs

Crea un'istanza di IHostBuilder per configurare e compilare l'host.

public:
 static Microsoft::Extensions::Hosting::IHostBuilder ^ CreateBuilder(Action<Microsoft::Extensions::Hosting::Testing::FakeHostOptions ^> ^ configure);
public static Microsoft.Extensions.Hosting.IHostBuilder CreateBuilder (Action<Microsoft.Extensions.Hosting.Testing.FakeHostOptions> configure);
static member CreateBuilder : Action<Microsoft.Extensions.Hosting.Testing.FakeHostOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Shared Function CreateBuilder (configure As Action(Of FakeHostOptions)) As IHostBuilder

Parametri

configure
Action<FakeHostOptions>

Opzioni per configurare l'istanza FakeHostOptions .

Restituisce

Istanza di IHostBuilder.

Si applica a