Share via


FabricTransportServiceRemotingClientFactory Constructor

Definition

Initializes a new instance of the FabricTransportServiceRemotingClientFactory class. Constructs a fabric transport based service remoting client factory.

public FabricTransportServiceRemotingClientFactory (Microsoft.ServiceFabric.Services.Remoting.FabricTransport.FabricTransportRemotingSettings remotingSettings = default, Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler remotingCallbackMessageHandler = default, Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver servicePartitionResolver = default, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> exceptionHandlers = default, string traceId = default, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IExceptionConvertor> exceptionConvertors = default);
new Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Client.FabricTransportServiceRemotingClientFactory : Microsoft.ServiceFabric.Services.Remoting.FabricTransport.FabricTransportRemotingSettings * Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler * Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver * seq<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> * string * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * seq<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IExceptionConvertor> -> Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Client.FabricTransportServiceRemotingClientFactory
Public Sub New (Optional remotingSettings As FabricTransportRemotingSettings = Nothing, Optional remotingCallbackMessageHandler As IServiceRemotingCallbackMessageHandler = Nothing, Optional servicePartitionResolver As IServicePartitionResolver = Nothing, Optional exceptionHandlers As IEnumerable(Of IExceptionHandler) = Nothing, Optional traceId As String = Nothing, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, Optional exceptionConvertors As IEnumerable(Of IExceptionConvertor) = Nothing)

Parameters

remotingSettings
FabricTransportRemotingSettings

The settings for the fabric transport. If the settings are not provided or null, default settings with no security.

remotingCallbackMessageHandler
IServiceRemotingCallbackMessageHandler

The callback client that receives the callbacks from the service.

servicePartitionResolver
IServicePartitionResolver

Service partition resolver to resolve the service endpoints. If not specified, a default service partition resolver returned by GetDefault() is used.

exceptionHandlers
IEnumerable<IExceptionHandler>

Exception handlers to handle the exceptions encountered in communicating with the service.

traceId
String

Id to use in diagnostics traces from this component.

serializationProvider
IServiceRemotingMessageSerializationProvider

Serialization Provider to serialize and deserialize request and response.

exceptionConvertors
IEnumerable<IExceptionConvertor>

Convertors to convert service exception to user exception.

Remarks

This factory uses an internal fabric transport exception handler to handle exceptions at the fabric TCP transport level and a ServiceRemotingExceptionHandler, in addition to the exception handlers supplied to the constructor.

Applies to