WcfServiceRemotingListener Constructors

Definition

Overloads

WcfServiceRemotingListener(ServiceContext, IService, Binding, IServiceRemotingMessageSerializationProvider, String, Boolean)

Initializes a new instance of the WcfServiceRemotingListener class.

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

Initializes a new instance of the WcfServiceRemotingListener class.

WcfServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, IServiceRemotingMessageSerializationProvider, Binding, String, Boolean)

Initializes a new instance of the WcfServiceRemotingListener class.

WcfServiceRemotingListener(ServiceContext, IService, Binding, IServiceRemotingMessageSerializationProvider, String, Boolean)

Initializes a new instance of the WcfServiceRemotingListener class.

public WcfServiceRemotingListener (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.IService serviceImplementation, System.ServiceModel.Channels.Binding listenerBinding = default, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, string endpointResourceName = "ServiceEndpointV2", bool useWrappedMessage = false);
new Microsoft.ServiceFabric.Services.Remoting.V2.Wcf.Runtime.WcfServiceRemotingListener : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.IService * System.ServiceModel.Channels.Binding * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * string * bool -> Microsoft.ServiceFabric.Services.Remoting.V2.Wcf.Runtime.WcfServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, serviceImplementation As IService, Optional listenerBinding As Binding = Nothing, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, Optional endpointResourceName As String = "ServiceEndpointV2", Optional useWrappedMessage As Boolean = false)

Parameters

serviceContext
ServiceContext

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

serviceImplementation
IService

The service implementation object.

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.

serializationProvider
IServiceRemotingMessageSerializationProvider

Serialization Provider.

endpointResourceName
String

The name of the endpoint resource defined in the service manifest that should be used to create the address for the listener. If the endpointResourceName is not specified or null, the default value "ServiceEndpointV2" is used.

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

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

Initializes a new instance of the WcfServiceRemotingListener class.

public WcfServiceRemotingListener (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingMessageHandler messageHandler, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, System.ServiceModel.Channels.Binding listenerBinding = default, System.ServiceModel.EndpointAddress address = default, bool useWrappedMessage = false);
new Microsoft.ServiceFabric.Services.Remoting.V2.Wcf.Runtime.WcfServiceRemotingListener : 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.Services.Remoting.V2.Wcf.Runtime.WcfServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, messageHandler As IServiceRemotingMessageHandler, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, 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.

messageHandler
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 "ServiceEndpointV2" 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

WcfServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, IServiceRemotingMessageSerializationProvider, Binding, String, Boolean)

Initializes a new instance of the WcfServiceRemotingListener class.

public WcfServiceRemotingListener (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingMessageHandler messageHandler, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, System.ServiceModel.Channels.Binding listenerBinding = default, string endpointResourceName = "ServiceEndpointV2", bool useWrappedMessage = false);
new Microsoft.ServiceFabric.Services.Remoting.V2.Wcf.Runtime.WcfServiceRemotingListener : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingMessageHandler * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * System.ServiceModel.Channels.Binding * string * bool -> Microsoft.ServiceFabric.Services.Remoting.V2.Wcf.Runtime.WcfServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, messageHandler As IServiceRemotingMessageHandler, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, Optional listenerBinding As Binding = Nothing, Optional endpointResourceName As String = "ServiceEndpointV2", Optional useWrappedMessage As Boolean = false)

Parameters

serviceContext
ServiceContext

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

messageHandler
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 which creates a NetTcpBinding with no security.

endpointResourceName
String

The name of the endpoint resource defined in the service manifest that should be used to create the address for the listener. If the endpointResourceName is not specified or it is null, the default value "ServiceEndpointV2" is used.

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