ServicePartitionClient<TCommunicationClient> Construtor
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância da ServicePartitionClient<TCommunicationClient> classe que usa a fábrica de clientes de comunicação especificada para criar um cliente para se comunicar com o ponto de extremidade de serviço identificado pelo URI do serviço, partitionkey, réplica e argumentos de ouvinte.
public ServicePartitionClient (Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<TCommunicationClient> communicationClientFactory, Uri serviceUri, Microsoft.ServiceFabric.Services.Client.ServicePartitionKey partitionKey = default, Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector targetReplicaSelector = Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector.PrimaryReplica, string listenerName = default, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings = default);
new Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> : Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> * Uri * Microsoft.ServiceFabric.Services.Client.ServicePartitionKey * Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector * string * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings -> Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)>
Public Sub New (communicationClientFactory As ICommunicationClientFactory(Of TCommunicationClient), serviceUri As Uri, Optional partitionKey As ServicePartitionKey = Nothing, Optional targetReplicaSelector As TargetReplicaSelector = Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector.PrimaryReplica, Optional listenerName As String = Nothing, Optional retrySettings As OperationRetrySettings = Nothing)
Parâmetros
- communicationClientFactory
- ICommunicationClientFactory<TCommunicationClient>
Fábrica de clientes de comunicação
- serviceUri
- Uri
Nome do serviço
- partitionKey
- ServicePartitionKey
A chave de partição usada para identificar a partição dentro do serviço.
- targetReplicaSelector
- TargetReplicaSelector
Informações de réplica de destino
- listenerName
- String
Ouvinte no réplica ao qual o cliente deve se conectar
- retrySettings
- OperationRetrySettings
Política de repetição para exceções vistas durante a comunicação
Aplica-se a
Azure SDK for .NET