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
파일 보기 프로젝트 열기: iancooper/Paramore

공개 메소드들

메소드 설명
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