TestClusterHostFactory.CreateSiloHost 方法

定义

重载

CreateSiloHost(String, IEnumerable<IConfigurationSource>)

创建 返回新的 silo。

CreateSiloHost(String, IConfiguration, Action<IHostBuilder>)

创建 返回新的 silo。

CreateSiloHost(String, IEnumerable<IConfigurationSource>)

Source:
TestClusterHostFactory.cs

创建 返回新的 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

参数

hostName
String

接收器名称(如果尚未在配置中指定)。

configurationSources
IEnumerable<IConfigurationSource>

配置。

返回

一个新的接收器。

适用于

CreateSiloHost(String, IConfiguration, Action<IHostBuilder>)

创建 返回新的 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

参数

hostName
String

接收器名称(如果尚未在配置中指定)。

configuration
IConfiguration

配置。

postConfigureHostBuilder
Action<IHostBuilder>

一个可选委托,可用于在生成主机之前配置主机生成器。

返回

一个新的接收器。

适用于