Bagikan melalui


FakeHost.CreateBuilder Metode

Definisi

Overload

CreateBuilder()

Membuat instans IHostBuilder untuk mengonfigurasi dan membangun host.

CreateBuilder(FakeHostOptions)

Membuat instans IHostBuilder untuk mengonfigurasi dan membangun host.

CreateBuilder(Action<FakeHostOptions>)

Membuat instans IHostBuilder untuk mengonfigurasi dan membangun host.

CreateBuilder()

Sumber:
FakeHost.cs

Membuat instans IHostBuilder untuk mengonfigurasi dan membangun 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

Mengembalikan

Instans IHostBuilder.

Berlaku untuk

CreateBuilder(FakeHostOptions)

Sumber:
FakeHost.cs

Membuat instans IHostBuilder untuk mengonfigurasi dan membangun 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

Parameter

options
FakeHostOptions

Instans FakeHostOptions .

Mengembalikan

Instans IHostBuilder.

Berlaku untuk

CreateBuilder(Action<FakeHostOptions>)

Sumber:
FakeHost.cs

Membuat instans IHostBuilder untuk mengonfigurasi dan membangun 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

Parameter

configure
Action<FakeHostOptions>

Opsi untuk mengonfigurasi FakeHostOptions instans.

Mengembalikan

Instans IHostBuilder.

Berlaku untuk