Freigeben über


TestClusterHostFactory.CreateClusterClient Methode

Definition

Überlädt

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

Erstellt den Clusterclient.

CreateClusterClient(String, IEnumerable<IConfigurationSource>)

Quelle:
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

Parameter

hostName
String
configurationSources
IEnumerable<IConfigurationSource>

Gibt zurück

Gilt für:

CreateClusterClient(String, IConfiguration, Action<IHostBuilder>)

Erstellt den Clusterclient.

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

Parameter

hostName
String

Der Name des Hosts.

configuration
IConfiguration

Die Konfiguration.

postConfigureHostBuilder
Action<IHostBuilder>

Ein optionaler Delegat, der zum Konfigurieren des Host-Generators direkt vor dem Erstellen eines Hosts verwendet werden kann.

Gibt zurück

Der Clusterclienthost.

Gilt für: