C# Класс paramore.brighter.commandprocessor.DefaultPolicy

Class DefaultPolicy We use Polly policies to provide Quality of Service. By default we provide them for a Task Queue and require you to register policies with The is a default policy which will retry once only. If you want better control over retries please use the PolicyRegistry to respectively determine retry attempts for putting onto and popping off the queue and for breaking the circuit if we cannot You can register additional policies (or reuse these) to provide QoS for individual handlers. The UsePolicyAttribute and ExceptionPolicyandler provide an easy way to do this using the policies that you add to this registry This is a default implementation of IAmAPolicyRegistry
Наследование: IAmAPolicyRegistry
Показать файл Открыть проект

Открытые методы

Метод Описание
Get ( string policyName ) : Policy

Gets the default policy of retry once

Has ( string policyName ) : bool

This will always return false as there is only one default policy

Описание методов

Get() публичный Метод

Gets the default policy of retry once
public Get ( string policyName ) : Policy
policyName string Name of the policy. As this a default policy this is not used
Результат Polly.Policy

Has() публичный Метод

This will always return false as there is only one default policy
public Has ( string policyName ) : bool
policyName string Name of the policy. As this a default policy this is not used
Результат bool