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

WcfActorRemotingClientFactory 构造函数

定义

重载

WcfActorRemotingClientFactory(IServiceRemotingCallbackMessageHandler)

初始化 WcfActorRemotingClientFactory 类的新实例。

WcfActorRemotingClientFactory(Binding, IServiceRemotingCallbackMessageHandler, IEnumerable<IExceptionHandler>, IServicePartitionResolver, String, IServiceRemotingMessageSerializationProvider, Boolean)

初始化 WcfActorRemotingClientFactory 类的新实例。

WcfActorRemotingClientFactory(IServiceRemotingCallbackMessageHandler)

初始化 WcfActorRemotingClientFactory 类的新实例。

public WcfActorRemotingClientFactory(Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler callbackClient);
new Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Client.WcfActorRemotingClientFactory : Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler -> Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Client.WcfActorRemotingClientFactory
Public Sub New (callbackClient As IServiceRemotingCallbackMessageHandler)

参数

callbackClient
IServiceRemotingCallbackMessageHandler

从服务接收回调的回调客户端。

适用于

WcfActorRemotingClientFactory(Binding, IServiceRemotingCallbackMessageHandler, IEnumerable<IExceptionHandler>, IServicePartitionResolver, String, IServiceRemotingMessageSerializationProvider, Boolean)

初始化 WcfActorRemotingClientFactory 类的新实例。

public WcfActorRemotingClientFactory(System.ServiceModel.Channels.Binding clientBinding, Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler callbackClient, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> exceptionHandlers = default, Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver servicePartitionResolver = default, string traceId = default, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, bool useWrappedMessage = false);
new Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Client.WcfActorRemotingClientFactory : System.ServiceModel.Channels.Binding * Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler * seq<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> * Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver * string * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * bool -> Microsoft.ServiceFabric.Actors.Remoting.V2.Wcf.Client.WcfActorRemotingClientFactory
Public Sub New (clientBinding As Binding, callbackClient As IServiceRemotingCallbackMessageHandler, Optional exceptionHandlers As IEnumerable(Of IExceptionHandler) = Nothing, Optional servicePartitionResolver As IServicePartitionResolver = Nothing, Optional traceId As String = Nothing, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, Optional useWrappedMessage As Boolean = false)

参数

clientBinding
Binding

要用于客户端的 WCF 绑定。 如果客户端绑定为 null,则使用 CreateTcpClientBinding(Int64, TimeSpan, TimeSpan) 方法创建默认客户端绑定,该方法创建一个 NetTcpBinding 没有安全性的 。

callbackClient
IServiceRemotingCallbackMessageHandler

从服务接收回调的回调客户端。

exceptionHandlers
IEnumerable<IExceptionHandler>

异常处理程序,用于处理与服务通信时遇到的异常。

servicePartitionResolver
IServicePartitionResolver

用于解析服务终结点的服务分区解析程序。 如果未指定,则使用 返回 GetDefault() 的默认服务分区解析程序。

traceId
String

要用于此组件的跟踪诊断 ID。

serializationProvider
IServiceRemotingMessageSerializationProvider

序列化提供程序

useWrappedMessage
Boolean

它指示远程处理方法参数在通过网络发送之前是否应包装它。 当 UseWrappedMessage 设置为 false 时,不会包装参数。 当此值设置为 true 时,将包装参数。默认值为 false。

注解

除了提供给构造函数的异常处理程序外,此工厂还使用 WcfExceptionHandlerActorRemotingExceptionHandler

适用于