TestClusterHostFactory.CreateClusterClient 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateClusterClient(String, IEnumerable<IConfigurationSource>) | |
CreateClusterClient(String, IConfiguration, Action<IHostBuilder>) |
建立叢集用戶端。 |
CreateClusterClient(String, IEnumerable<IConfigurationSource>)
public static Orleans.IClusterClient CreateClusterClient (string hostName, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Configuration.IConfigurationSource> configurationSources);
static member CreateClusterClient : string * seq<Microsoft.Extensions.Configuration.IConfigurationSource> -> Orleans.IClusterClient
Public Shared Function CreateClusterClient (hostName As String, configurationSources As IEnumerable(Of IConfigurationSource)) As IClusterClient
參數
- hostName
- String
- configurationSources
- IEnumerable<IConfigurationSource>
傳回
適用於
CreateClusterClient(String, IConfiguration, Action<IHostBuilder>)
建立叢集用戶端。
public static Microsoft.Extensions.Hosting.IHost CreateClusterClient (string hostName, Microsoft.Extensions.Configuration.IConfiguration configuration, Action<Microsoft.Extensions.Hosting.IHostBuilder> postConfigureHostBuilder = default);
static member CreateClusterClient : string * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> Microsoft.Extensions.Hosting.IHost
Public Shared Function CreateClusterClient (hostName As String, configuration As IConfiguration, Optional postConfigureHostBuilder As Action(Of IHostBuilder) = Nothing) As IHost
參數
- hostName
- String
主機的名稱。
- configuration
- IConfiguration
組態。
- postConfigureHostBuilder
- Action<IHostBuilder>
選擇性委派,可用來在建置主機之前設定主機產生器。
傳回
叢集用戶端主機。