Edytuj

Udostępnij za pośrednictwem


TestClusterHostFactory.CreateSiloHost Method

Definition

Overloads

CreateSiloHost(String, IEnumerable<IConfigurationSource>)

Creates an returns a new silo.

CreateSiloHost(String, IConfiguration, Action<IHostBuilder>)

Creates an returns a new silo.

CreateSiloHost(String, IEnumerable<IConfigurationSource>)

Source:
TestClusterHostFactory.cs

Creates an returns a new silo.

public static Orleans.Hosting.ISiloHost CreateSiloHost (string hostName, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Configuration.IConfigurationSource> configurationSources);
static member CreateSiloHost : string * seq<Microsoft.Extensions.Configuration.IConfigurationSource> -> Orleans.Hosting.ISiloHost
Public Shared Function CreateSiloHost (hostName As String, configurationSources As IEnumerable(Of IConfigurationSource)) As ISiloHost

Parameters

hostName
String

The silo name if it is not already specified in the configuration.

configurationSources
IEnumerable<IConfigurationSource>

The configuration.

Returns

A new silo.

Applies to

CreateSiloHost(String, IConfiguration, Action<IHostBuilder>)

Creates an returns a new silo.

public static Microsoft.Extensions.Hosting.IHost CreateSiloHost (string hostName, Microsoft.Extensions.Configuration.IConfiguration configuration, Action<Microsoft.Extensions.Hosting.IHostBuilder> postConfigureHostBuilder = default);
static member CreateSiloHost : string * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> Microsoft.Extensions.Hosting.IHost
Public Shared Function CreateSiloHost (hostName As String, configuration As IConfiguration, Optional postConfigureHostBuilder As Action(Of IHostBuilder) = Nothing) As IHost

Parameters

hostName
String

The silo name if it is not already specified in the configuration.

configuration
IConfiguration

The configuration.

postConfigureHostBuilder
Action<IHostBuilder>

An optional delegate which can be used to configure the host builder just prior to a host being built.

Returns

A new silo.

Applies to