Partilhar via


ServiceProxyFactory Construtores

Definição

Sobrecargas

ServiceProxyFactory(OperationRetrySettings)

Inicializa uma nova instância da ServiceProxyFactory classe com as retrysettings especificadas e a comunicação remota padrãoClientFactory.

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

Inicializa uma nova instância da ServiceProxyFactory classe com a fábrica de comunicação remota V2 especificada e retrysettings.

ServiceProxyFactory(OperationRetrySettings)

Inicializa uma nova instância da ServiceProxyFactory classe com as retrysettings especificadas e a comunicação remota padrãoClientFactory.

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)

Parâmetros

retrySettings
OperationRetrySettings

As configurações para tentar novamente as operações com falha.

Aplica-se a

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

Inicializa uma nova instância da ServiceProxyFactory classe com a fábrica de comunicação remota V2 especificada e 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)

Parâmetros

createServiceRemotingClientFactory
Func<IServiceRemotingCallbackMessageHandler,IServiceRemotingClientFactory>

Especifica o método de fábrica que cria a fábrica de clientes de comunicação remota. A fábrica de clientes de comunicação remota obtiveda desse método é armazenada em cache no ServiceProxyFactory.

retrySettings
OperationRetrySettings

Especifica a política de repetição a ser usada em exceções vistas ao usar os proxies criados por esta fábrica

disposeFactory
Action<IServiceRemotingClientFactory>

Especifica o método que descarta os recursos clientFactory.

Aplica-se a