共用方式為


TestClusterHostFactory.CreateClusterClient 方法

定義

多載

CreateClusterClient(String, IEnumerable<IConfigurationSource>)
CreateClusterClient(String, IConfiguration, Action<IHostBuilder>)

建立叢集用戶端。

CreateClusterClient(String, IEnumerable<IConfigurationSource>)

來源:
TestClusterHostFactory.cs
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>

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

傳回

叢集用戶端主機。

適用於