Partager via


TestClusterHostFactory.CreateClusterClient Méthode

Définition

Surcharges

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

Crée le client de cluster.

CreateClusterClient(String, IEnumerable<IConfigurationSource>)

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

Paramètres

hostName
String
configurationSources
IEnumerable<IConfigurationSource>

Retours

S’applique à

CreateClusterClient(String, IConfiguration, Action<IHostBuilder>)

Crée le client de cluster.

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

Paramètres

hostName
String

Nom de l'hôte.

configuration
IConfiguration

Configuration.

postConfigureHostBuilder
Action<IHostBuilder>

Délégué facultatif qui peut être utilisé pour configurer le générateur d’hôtes juste avant la génération d’un hôte.

Retours

Hôte client de cluster.

S’applique à