Compartilhar via


TestClusterHostFactory.CreateClusterClient Método

Definição

Sobrecargas

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

Cria o cliente do cluster.

CreateClusterClient(String, IEnumerable<IConfigurationSource>)

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

Retornos

Aplica-se a

CreateClusterClient(String, IConfiguration, Action<IHostBuilder>)

Cria o cliente do 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

Parâmetros

hostName
String

Nome do host.

configuration
IConfiguration

A configuração.

postConfigureHostBuilder
Action<IHostBuilder>

Um delegado opcional que pode ser usado para configurar o construtor de host logo antes de um host ser criado.

Retornos

O host do cliente do cluster.

Aplica-se a