Compartir a través de


TestClusterHostFactory.CreateClusterClient Método

Definición

Sobrecargas

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

Crea el cliente del clúster.

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

Parámetros

hostName
String
configurationSources
IEnumerable<IConfigurationSource>

Devoluciones

Se aplica a

CreateClusterClient(String, IConfiguration, Action<IHostBuilder>)

Crea el cliente del clúster.

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

Parámetros

hostName
String

Nombre del host.

configuration
IConfiguration

Configuración.

postConfigureHostBuilder
Action<IHostBuilder>

Delegado opcional que se puede usar para configurar el generador de hosts justo antes de compilar un host.

Devoluciones

Host del cliente del clúster.

Se aplica a