Share via


ServiceRemotingMessageDispatcher Constructors

Definition

Overloads

ServiceRemotingMessageDispatcher(ServiceContext, IService, IServiceRemotingMessageBodyFactory)

Initializes a new instance of the ServiceRemotingMessageDispatcher class that uses the given service context and dispatches messages to the given service implementation.

ServiceRemotingMessageDispatcher(IEnumerable<Type>, ServiceContext, Object, IServiceRemotingMessageBodyFactory)

Initializes a new instance of the ServiceRemotingMessageDispatcher class that uses the given service context and dispatches messages to the given service implementation.

ServiceRemotingMessageDispatcher(ServiceContext, IService, IServiceRemotingMessageBodyFactory)

Initializes a new instance of the ServiceRemotingMessageDispatcher class that uses the given service context and dispatches messages to the given service implementation.

public ServiceRemotingMessageDispatcher (System.Fabric.ServiceContext serviceContext, Microsoft.ServiceFabric.Services.Remoting.IService serviceImplementation, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageBodyFactory serviceRemotingMessageBodyFactory = default);
new Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.ServiceRemotingMessageDispatcher : System.Fabric.ServiceContext * Microsoft.ServiceFabric.Services.Remoting.IService * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageBodyFactory -> Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.ServiceRemotingMessageDispatcher
Public Sub New (serviceContext As ServiceContext, serviceImplementation As IService, Optional serviceRemotingMessageBodyFactory As IServiceRemotingMessageBodyFactory = Nothing)

Parameters

serviceContext
ServiceContext

Service context

serviceImplementation
IService

Service implementation that implements interfaces of type IService

serviceRemotingMessageBodyFactory
IServiceRemotingMessageBodyFactory

The factory that will be used by the dispatcher to create response message bodies.

Applies to

ServiceRemotingMessageDispatcher(IEnumerable<Type>, ServiceContext, Object, IServiceRemotingMessageBodyFactory)

Initializes a new instance of the ServiceRemotingMessageDispatcher class that uses the given service context and dispatches messages to the given service implementation.

public ServiceRemotingMessageDispatcher (System.Collections.Generic.IEnumerable<Type> remotingTypes, System.Fabric.ServiceContext serviceContext, object serviceImplementation, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageBodyFactory serviceRemotingMessageBodyFactory = default);
new Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.ServiceRemotingMessageDispatcher : seq<Type> * System.Fabric.ServiceContext * obj * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageBodyFactory -> Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.ServiceRemotingMessageDispatcher
Public Sub New (remotingTypes As IEnumerable(Of Type), serviceContext As ServiceContext, serviceImplementation As Object, Optional serviceRemotingMessageBodyFactory As IServiceRemotingMessageBodyFactory = Nothing)

Parameters

remotingTypes
IEnumerable<Type>

Remoted interface types to which to dispatch the messages to.

serviceContext
ServiceContext

The service fabric service context.

serviceImplementation
Object

Object that implements the speciifed remoted interfaces.

serviceRemotingMessageBodyFactory
IServiceRemotingMessageBodyFactory

The factory that will be used by the dispatcher to create response message bodies.

Applies to