你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WcfServiceRemotingProviderAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此属性允许在程序集中将 WCF 传输设置为默认服务远程处理传输提供程序,并对其进行自定义。
[System.AttributeUsage(System.AttributeTargets.Assembly)]
public sealed class WcfServiceRemotingProviderAttribute : Microsoft.ServiceFabric.Services.Remoting.ServiceRemotingProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly)>]
type WcfServiceRemotingProviderAttribute = class
inherit ServiceRemotingProviderAttribute
Public NotInheritable Class WcfServiceRemotingProviderAttribute
Inherits ServiceRemotingProviderAttribute
- 继承
- 属性
构造函数
WcfServiceRemotingProviderAttribute() |
初始化 WcfServiceRemotingProviderAttribute 类的新实例。 |
属性
CloseTimeoutInMilliSeconds |
获取或设置在关闭连接以让现有消息排出之前等待的超时(以毫秒为单位)。 |
MaxMessageSize |
获取或设置可通过远程处理传输的最大消息大小。 |
OpenTimeoutInMilliSeconds |
获取或设置从客户端打开连接并等待侦听器在服务端打开的超时(以毫秒为单位)。 |
RemotingClientVersion |
获取或设置要使用的远程处理客户端的版本。 (继承自 ServiceRemotingProviderAttribute) |
RemotingListenerVersion |
获取或设置远程处理侦听器要使用的版本。 (继承自 ServiceRemotingProviderAttribute) |
方法
CreateServiceRemotingClientFactory(IServiceRemotingCallbackClient) |
创建 V1 服务远程处理客户端工厂,该工厂可由 ServiceProxyFactory 用于为服务的远程接口创建代理。 |
CreateServiceRemotingClientFactoryV2(IServiceRemotingCallbackMessageHandler) |
创建一个服务远程处理客户端工厂,该工厂可由 ServiceProxyFactory 用于为服务的远程接口创建代理。 |
CreateServiceRemotingListener(ServiceContext, IService) |
创建 V1 服务远程处理侦听器,用于远程处理服务接口。 |
CreateServiceRemotingListeners() |
返回用于创建远程处理侦听器的 func 方法。 |