C# Class 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
Inheritance: IAmAPolicyRegistry
Exibir arquivo Open project: iancooper/Paramore

Public Methods

Method Description
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

Method Details

Get() public method

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
return Polly.Policy

Has() public method

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
return bool