FakeHost.CreateBuilder Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- 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
.NET 10 (package-provided) и други версии
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
- 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
.NET 10 (package-provided) и други версии
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
- 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
.NET 10 (package-provided) и други версии
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: