Share via


WcfActorRemotingClientFactory Constructors

Definition

Overloads

WcfActorRemotingClientFactory(IServiceRemotingCallbackMessageHandler)

Initializes a new instance of the WcfActorRemotingClientFactory class.

WcfActorRemotingClientFactory(Binding, IServiceRemotingCallbackMessageHandler, IEnumerable<IExceptionHandler>, IServicePartitionResolver, String, IServiceRemotingMessageSerializationProvider, Boolean)

Initializes a new instance of the WcfActorRemotingClientFactory class.

WcfActorRemotingClientFactory(IServiceRemotingCallbackMessageHandler)

Initializes a new instance of the WcfActorRemotingClientFactory class.

public WcfActorRemotingClientFactory (Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler callbackClient);
new Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Client.WcfActorRemotingClientFactory : Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler -> Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Client.WcfActorRemotingClientFactory
Public Sub New (callbackClient As IServiceRemotingCallbackMessageHandler)

Parameters

callbackClient
IServiceRemotingCallbackMessageHandler

The callback client that receives the callbacks from the service.

Applies to

WcfActorRemotingClientFactory(Binding, IServiceRemotingCallbackMessageHandler, IEnumerable<IExceptionHandler>, IServicePartitionResolver, String, IServiceRemotingMessageSerializationProvider, Boolean)

Initializes a new instance of the WcfActorRemotingClientFactory class.

public WcfActorRemotingClientFactory (System.ServiceModel.Channels.Binding clientBinding, Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler callbackClient, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> exceptionHandlers = default, Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver servicePartitionResolver = default, string traceId = default, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, bool useWrappedMessage = false);
new Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Client.WcfActorRemotingClientFactory : System.ServiceModel.Channels.Binding * Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler * seq<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> * Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver * string * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * bool -> Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Client.WcfActorRemotingClientFactory
Public Sub New (clientBinding As Binding, callbackClient As IServiceRemotingCallbackMessageHandler, Optional exceptionHandlers As IEnumerable(Of IExceptionHandler) = Nothing, Optional servicePartitionResolver As IServicePartitionResolver = Nothing, Optional traceId As String = Nothing, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, Optional useWrappedMessage As Boolean = false)

Parameters

clientBinding
Binding

WCF binding to use for the client. If the client binding is null, a default client binding is created using CreateTcpClientBinding(Int64, TimeSpan, TimeSpan) method which creates a NetTcpBinding with no security.

callbackClient
IServiceRemotingCallbackMessageHandler

The callback client that receives the callbacks from the service.

exceptionHandlers
IEnumerable<IExceptionHandler>

Exception handlers to handle the exceptions encountered in communicating with 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.

traceId
String

Id to use in diagnostics traces from this component.

serializationProvider
IServiceRemotingMessageSerializationProvider

Serialization Provider

useWrappedMessage
Boolean

It indicates whether the remoting method parameters should be wrapped or not before sending it over the wire. When UseWrappedMessage is set to false, parameters will not be wrapped. When this value is set to true, the parameters will be wrapped.Default value is false.

Remarks

This factory uses WcfExceptionHandler, ActorRemotingExceptionHandler, in addition to the exception handlers supplied to the constructor.

Applies to