WcfServiceRemotingListener Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WcfServiceRemotingListener(ServiceContext, IService, Binding, String) |
Initializes a new instance of the WcfServiceRemotingListener class. |
WcfServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, Binding, EndpointAddress) |
Initializes a new instance of the WcfServiceRemotingListener class. |
WcfServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, Binding, String) |
Initializes a new instance of the WcfServiceRemotingListener class. |
WcfServiceRemotingListener(ServiceContext, IService, Binding, String)
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, string endpointResourceName = "ServiceEndpoint");
new Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.Runtime.WcfServiceRemotingListener : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.IService * System.ServiceModel.Channels.Binding * string -> Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.Runtime.WcfServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, serviceImplementation As IService, Optional listenerBinding As Binding = Nothing, Optional endpointResourceName As String = "ServiceEndpoint")
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.
- 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 "ServiceEndpoint" is used.
Applies to
WcfServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, Binding, EndpointAddress)
Initializes a new instance of the WcfServiceRemotingListener class.
public WcfServiceRemotingListener (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.V1.Runtime.IServiceRemotingMessageHandler messageHandler, System.ServiceModel.Channels.Binding listenerBinding = default, System.ServiceModel.EndpointAddress address = default);
new Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.Runtime.WcfServiceRemotingListener : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.V1.Runtime.IServiceRemotingMessageHandler * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.Runtime.WcfServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, messageHandler As IServiceRemotingMessageHandler, Optional listenerBinding As Binding = Nothing, Optional address As EndpointAddress = Nothing)
Parameters
- serviceContext
- ServiceContext
The context of the service for which the remoting listener is being constructed.
- messageHandler
- Microsoft.ServiceFabric.Services.Remoting.V1.Runtime.IServiceRemotingMessageHandler
The handler for receiving and processing remoting messages. As the messages are received the listener delivers the messages to the handler.
- 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.
Applies to
WcfServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, Binding, String)
Initializes a new instance of the WcfServiceRemotingListener class.
public WcfServiceRemotingListener (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.V1.Runtime.IServiceRemotingMessageHandler messageHandler, System.ServiceModel.Channels.Binding listenerBinding = default, string endpointResourceName = "ServiceEndpoint");
new Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.Runtime.WcfServiceRemotingListener : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.V1.Runtime.IServiceRemotingMessageHandler * System.ServiceModel.Channels.Binding * string -> Microsoft.ServiceFabric.Services.Remoting.V1.Wcf.Runtime.WcfServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, messageHandler As IServiceRemotingMessageHandler, Optional listenerBinding As Binding = Nothing, Optional endpointResourceName As String = "ServiceEndpoint")
Parameters
- serviceContext
- ServiceContext
The context of the service for which the remoting listener is being constructed.
- messageHandler
- Microsoft.ServiceFabric.Services.Remoting.V1.Runtime.IServiceRemotingMessageHandler
The handler for receiving and processing remoting messages. As the messages are received the listener delivers the messages to the handler.
- 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 "ServiceEndpoint" is used.