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

ServiceProxyFactory 类

定义

指定创建代理以与指定服务进行远程通信的工厂。

public class ServiceProxyFactory : Microsoft.ServiceFabric.Services.Remoting.Client.IServiceProxyFactory
type ServiceProxyFactory = class
    interface IServiceProxyFactory
Public Class ServiceProxyFactory
Implements IServiceProxyFactory
继承
ServiceProxyFactory
实现

构造函数

ServiceProxyFactory(Func<IServiceRemotingCallbackMessageHandler, IServiceRemotingClientFactory>, OperationRetrySettings, Action<IServiceRemotingClientFactory>)

使用指定的 V2 远程处理工厂和 retrysettings 初始化 类的新实例 ServiceProxyFactory

ServiceProxyFactory(OperationRetrySettings)

使用指定的 retrysettings 和默认 remotingClientFactory 初始化 类的新实例 ServiceProxyFactory

方法

CreateNonIServiceProxy<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String)

使用服务实现的远程接口 TServiceInterface 创建代理以与指定的服务通信。

CreateServiceProxy<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String)

使用服务实现的远程接口 TServiceInterface 创建代理以与指定的服务通信。

Dispose()

释放托管/非托管资源。 正在添加 Dispose 方法,而不是使其为 IDisposable,这样它就不会更改类型信息,也不会是中断性变更。

适用于