Compartilhar via


WcfServiceRemotingClientFactory Construtor

Definição

Inicializa uma nova instância da classe WcfServiceRemotingClientFactory.

public WcfServiceRemotingClientFactory (System.ServiceModel.Channels.Binding clientBinding = default, Microsoft.ServiceFabric.Services.Remoting.V1.IServiceRemotingCallbackClient callbackClient = default, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> exceptionHandlers = default, Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver servicePartitionResolver = default, string traceId = default, Func<System.ServiceModel.Channels.Binding,System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler>,Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver,string,Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.IServiceRemotingCallbackContract,Microsoft.ServiceFabric.Services.Communication.Wcf.Client.WcfCommunicationClientFactory<Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.IServiceRemotingContract>> createWcfClientFactory = default);
new Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.Client.WcfServiceRemotingClientFactory : System.ServiceModel.Channels.Binding * Microsoft.ServiceFabric.Services.Remoting.V1.IServiceRemotingCallbackClient * seq<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> * Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver * string * Func<System.ServiceModel.Channels.Binding, seq<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler>, Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver, string, Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.IServiceRemotingCallbackContract, Microsoft.ServiceFabric.Services.Communication.Wcf.Client.WcfCommunicationClientFactory<Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.IServiceRemotingContract>> -> Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.Client.WcfServiceRemotingClientFactory
Public Sub New (Optional clientBinding As Binding = Nothing, Optional callbackClient As IServiceRemotingCallbackClient = Nothing, Optional exceptionHandlers As IEnumerable(Of IExceptionHandler) = Nothing, Optional servicePartitionResolver As IServicePartitionResolver = Nothing, Optional traceId As String = Nothing, Optional createWcfClientFactory As Func(Of Binding, IEnumerable(Of IExceptionHandler), IServicePartitionResolver, String, IServiceRemotingCallbackContract, WcfCommunicationClientFactory(Of IServiceRemotingContract)) = Nothing)

Parâmetros

clientBinding
Binding

Associação do WCF a ser usada para o cliente. Se a associação de cliente não for especificada ou nula, uma associação de cliente padrão será criada usando CreateTcpClientBinding(Int64, TimeSpan, TimeSpan) o método que cria um NetTcpBinding sem segurança.

callbackClient
Microsoft.ServiceFabric.Services.Remoting.V1.IServiceRemotingCallbackClient

O cliente de retorno de chamada que recebe os retornos de chamada do serviço.

exceptionHandlers
IEnumerable<IExceptionHandler>

Manipuladores de exceção para lidar com as exceções encontradas na comunicação com o serviço.

servicePartitionResolver
IServicePartitionResolver

Resolvedor de partição de serviço para resolve os pontos de extremidade de serviço. Se não for especificado, um resolvedor de partição de serviço padrão retornado por GetDefault() será usado.

traceId
String

ID a ser usada em diagnóstico rastreamentos desse componente.

Comentários

Essa fábrica usa WcfExceptionHandler e ServiceRemotingExceptionHandler , além dos manipuladores de exceção fornecidos ao construtor.

Aplica-se a