TestClusterHostFactory.CreateSiloHost 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateSiloHost(String, IEnumerable<IConfigurationSource>) |
建立 會傳回新的定址接收器。 |
CreateSiloHost(String, IConfiguration, Action<IHostBuilder>) |
建立 會傳回新的定址接收器。 |
CreateSiloHost(String, IEnumerable<IConfigurationSource>)
建立 會傳回新的定址接收器。
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>
選擇性委派,可用來在建置主機之前設定主機產生器。
傳回
新的定址接收器。