共用方式為


TestClusterHostFactory.CreateSiloHost 方法

定義

多載

CreateSiloHost(String, IEnumerable<IConfigurationSource>)

建立 會傳回新的定址接收器。

CreateSiloHost(String, IConfiguration, Action<IHostBuilder>)

建立 會傳回新的定址接收器。

CreateSiloHost(String, IEnumerable<IConfigurationSource>)

來源:
TestClusterHostFactory.cs

建立 會傳回新的定址接收器。

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>)

建立 會傳回新的定址接收器。

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>

選擇性委派,可用來在建置主機之前設定主機產生器。

傳回

新的定址接收器。

適用於