FabricTransportServiceRemotingListener 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
FabricTransportServiceRemotingListener(ServiceContext, IService, FabricTransportRemotingListenerSettings, IServiceRemotingMessageSerializationProvider, IEnumerable<IExceptionConvertor>) |
Initializes a new instance of the FabricTransportServiceRemotingListener class. Constructs a fabric transport based service remoting listener . |
FabricTransportServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, FabricTransportRemotingListenerSettings, IServiceRemotingMessageSerializationProvider, IEnumerable<IExceptionConvertor>) |
Initializes a new instance of the FabricTransportServiceRemotingListener class. Constructs a fabric transport based service remoting listener. |
FabricTransportServiceRemotingListener(ServiceContext, IService, FabricTransportRemotingListenerSettings, IServiceRemotingMessageSerializationProvider, IEnumerable<IExceptionConvertor>)
Initializes a new instance of the FabricTransportServiceRemotingListener class. Constructs a fabric transport based service remoting listener .
public FabricTransportServiceRemotingListener (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.IService serviceImplementation, Microsoft.ServiceFabric.Services.Remoting.FabricTransport.Runtime.FabricTransportRemotingListenerSettings remotingListenerSettings = default, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IExceptionConvertor> exceptionConvertors = default);
new Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Runtime.FabricTransportServiceRemotingListener : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.IService * Microsoft.ServiceFabric.Services.Remoting.FabricTransport.Runtime.FabricTransportRemotingListenerSettings * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * seq<Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IExceptionConvertor> -> Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Runtime.FabricTransportServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, serviceImplementation As IService, Optional remotingListenerSettings As FabricTransportRemotingListenerSettings = Nothing, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, Optional exceptionConvertors As IEnumerable(Of IExceptionConvertor) = Nothing)
Parameters
- serviceContext
- ServiceContext
The context of the service for which the remoting listener is being constructed.
- serviceImplementation
- IService
The service implementation object used to construct ServiceRemotingMessageDispatcher for message processing.
- remotingListenerSettings
- FabricTransportRemotingListenerSettings
The settings for the listener
- serializationProvider
- IServiceRemotingMessageSerializationProvider
It is used to serialize deserialize request and response body
- exceptionConvertors
- IEnumerable<IExceptionConvertor>
Convertors to convert user exception to service exception.
Applies to
FabricTransportServiceRemotingListener(ServiceContext, IServiceRemotingMessageHandler, FabricTransportRemotingListenerSettings, IServiceRemotingMessageSerializationProvider, IEnumerable<IExceptionConvertor>)
Initializes a new instance of the FabricTransportServiceRemotingListener class. Constructs a fabric transport based service remoting listener.
public FabricTransportServiceRemotingListener (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingMessageHandler serviceRemotingMessageHandler, Microsoft.ServiceFabric.Services.Remoting.FabricTransport.Runtime.FabricTransportRemotingListenerSettings remotingListenerSettings = default, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IExceptionConvertor> exceptionConvertors = default);
new Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Runtime.FabricTransportServiceRemotingListener : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingMessageHandler * Microsoft.ServiceFabric.Services.Remoting.FabricTransport.Runtime.FabricTransportRemotingListenerSettings * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * seq<Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IExceptionConvertor> -> Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Runtime.FabricTransportServiceRemotingListener
Public Sub New (serviceContext As ServiceContext, serviceRemotingMessageHandler As IServiceRemotingMessageHandler, Optional remotingListenerSettings As FabricTransportRemotingListenerSettings = Nothing, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, Optional exceptionConvertors As IEnumerable(Of IExceptionConvertor) = Nothing)
Parameters
- serviceContext
- ServiceContext
The context of the service for which the remoting listener is being constructed.
- serviceRemotingMessageHandler
- IServiceRemotingMessageHandler
The handler for processing remoting messages. As the messages are received, the listener delivers them to this handler.
- remotingListenerSettings
- FabricTransportRemotingListenerSettings
The settings for the listener
- serializationProvider
- IServiceRemotingMessageSerializationProvider
It is used to serialize deserialize request and response body
- exceptionConvertors
- IEnumerable<IExceptionConvertor>
Covertors to convert user exception to service exception.
Applies to
Azure SDK for .NET