WcfActorServiceRemotingListener Constructors

Definition

Overloads

WcfActorServiceRemotingListener(ActorService, Binding, Boolean)

Initializes a new instance of the WcfActorServiceRemotingListener class.

WcfActorServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, IServiceRemotingMessageSerializationProvider, Binding, EndpointAddress, Boolean)

Initializes a new instance of the WcfActorServiceRemotingListener class.

WcfActorServiceRemotingListener(ActorService, Binding, Boolean)

Initializes a new instance of the WcfActorServiceRemotingListener class.

public WcfActorServiceRemotingListener (Microsoft.ServiceFabric.Actors.Runtime.ActorService actorService, System.ServiceModel.Channels.Binding listenerBinding = default, bool useWrappedMessage = false);
new Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Runtime.WcfActorServiceRemotingListener : Microsoft.ServiceFabric.Actors.Runtime.ActorService * System.ServiceModel.Channels.Binding * bool -> Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Runtime.WcfActorServiceRemotingListener
Public Sub New (actorService As ActorService, Optional listenerBinding As Binding = Nothing, Optional useWrappedMessage As Boolean = false)

Parameters

actorService
ActorService

The actor service.

listenerBinding
Binding

WCF binding to use for the listener. If the listener binding is not specified or null, a default listener binding is created using CreateTcpListenerBinding(Int64, TimeSpan, TimeSpan) method which creates a NetTcpBinding with no security.

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.

Applies to

WcfActorServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, IServiceRemotingMessageSerializationProvider, Binding, EndpointAddress, Boolean)

Initializes a new instance of the WcfActorServiceRemotingListener class.

public WcfActorServiceRemotingListener (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingMessageHandler serviceRemotingMessageHandler, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider, System.ServiceModel.Channels.Binding listenerBinding = default, System.ServiceModel.EndpointAddress address = default, bool useWrappedMessage = false);
new Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Runtime.WcfActorServiceRemotingListener : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingMessageHandler * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress * bool -> Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Runtime.WcfActorServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, serviceRemotingMessageHandler As IServiceRemotingMessageHandler, serializationProvider As IServiceRemotingMessageSerializationProvider, Optional listenerBinding As Binding = Nothing, Optional address As EndpointAddress = Nothing, Optional useWrappedMessage As Boolean = false)

Parameters

serviceContext
ServiceContext

The context of the service for which the remoting listener is being constructed.

serviceRemotingMessageHandler
IServiceRemotingMessageHandler

The handler for receiving and processing remoting messages. As the messages are received the listener delivers the messages to the handler.

serializationProvider
IServiceRemotingMessageSerializationProvider

Serialization Provider.

listenerBinding
Binding

WCF binding to use for the listener. If the listener binding is not specified or null, a default listener binding is created using CreateTcpListenerBinding(Int64, TimeSpan, TimeSpan) method.

address
EndpointAddress

The endpoint address to use for the WCF listener. If not specified or null, the endpoint address is created using the default endpoint resource named "ServiceEndpoint" defined in the service manifest.

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.

Applies to