Share via


FakeHost.CreateBuilder Method

Definition

Overloads

CreateBuilder()

Creates an instance of IHostBuilder to configure and build the host.

CreateBuilder(FakeHostOptions)

Creates an instance of IHostBuilder to configure and build the host.

CreateBuilder(Action<FakeHostOptions>)

Creates an instance of IHostBuilder to configure and build the host.

CreateBuilder()

Source:
FakeHost.cs

Creates an instance of IHostBuilder to configure and build the 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

Returns

An instance of IHostBuilder.

Applies to

CreateBuilder(FakeHostOptions)

Source:
FakeHost.cs

Creates an instance of IHostBuilder to configure and build the 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

Parameters

options
FakeHostOptions

An FakeHostOptions instance.

Returns

An instance of IHostBuilder.

Applies to

CreateBuilder(Action<FakeHostOptions>)

Source:
FakeHost.cs

Creates an instance of IHostBuilder to configure and build the 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

Parameters

configure
Action<FakeHostOptions>

The options to configure the FakeHostOptions instance.

Returns

An instance of IHostBuilder.

Applies to