你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceRemotingMessageDispatcher 构造函数

定义

重载

ServiceRemotingMessageDispatcher(ServiceContext, IService, IServiceRemotingMessageBodyFactory)

初始化 使用给定服务上下文并将 ServiceRemotingMessageDispatcher 消息调度到给定服务实现的 类的新实例。

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

初始化 使用给定服务上下文并将 ServiceRemotingMessageDispatcher 消息调度到给定服务实现的 类的新实例。

ServiceRemotingMessageDispatcher(ServiceContext, IService, IServiceRemotingMessageBodyFactory)

初始化 使用给定服务上下文并将 ServiceRemotingMessageDispatcher 消息调度到给定服务实现的 类的新实例。

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)

参数

serviceContext
ServiceContext

服务上下文

serviceImplementation
IService

实现 类型接口的服务实现 IService

serviceRemotingMessageBodyFactory
IServiceRemotingMessageBodyFactory

调度程序将用于创建响应消息正文的工厂。

适用于

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

初始化 使用给定服务上下文并将 ServiceRemotingMessageDispatcher 消息调度到给定服务实现的 类的新实例。

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)

参数

remotingTypes
IEnumerable<Type>

将消息调度到的远程接口类型。

serviceContext
ServiceContext

Service Fabric 服务上下文。

serviceImplementation
Object

实现指定的远程接口的对象。

serviceRemotingMessageBodyFactory
IServiceRemotingMessageBodyFactory

调度程序将用于创建响应消息正文的工厂。

适用于