共用方式為


ServiceProxyFactory Constructors

Definition

Overloads

ServiceProxyFactory(OperationRetrySettings)

Initializes a new instance of the ServiceProxyFactory class with the specified retrysettings and default remotingClientFactory.

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

Initializes a new instance of the ServiceProxyFactory class with the specified V2 remoting factory and retrysettings.

ServiceProxyFactory(OperationRetrySettings)

Initializes a new instance of the ServiceProxyFactory class with the specified retrysettings and default remotingClientFactory.

public ServiceProxyFactory (Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings = default);
new Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory : Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings -> Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory
Public Sub New (Optional retrySettings As OperationRetrySettings = Nothing)

Parameters

retrySettings
OperationRetrySettings

The settings for retrying the failed operations.

Applies to

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

Initializes a new instance of the ServiceProxyFactory class with the specified V2 remoting factory and retrysettings.

public ServiceProxyFactory (Func<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler,Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory> createServiceRemotingClientFactory, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings = default, Action<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory> disposeFactory = default);
new Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory : Func<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler, Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory> * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings * Action<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory> -> Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory
Public Sub New (createServiceRemotingClientFactory As Func(Of IServiceRemotingCallbackMessageHandler, IServiceRemotingClientFactory), Optional retrySettings As OperationRetrySettings = Nothing, Optional disposeFactory As Action(Of IServiceRemotingClientFactory) = Nothing)

Parameters

createServiceRemotingClientFactory
Func<IServiceRemotingCallbackMessageHandler,IServiceRemotingClientFactory>

Specifies the factory method that creates the remoting client factory. The remoting client factory got from this method is cached in the ServiceProxyFactory.

retrySettings
OperationRetrySettings

Specifies the retry policy to use on exceptions seen when using the proxies created by this factory

disposeFactory
Action<IServiceRemotingClientFactory>

Specifies the method that disposes clientFactory resources.

Applies to