Open sandboxFocus

Interface IRetryPolicy

Defines a TryAsync(OperationKind, int, Exception, ref object, CancellationToken) method that determines if a Redis transaction or operation should be retried if it fails. The default implementation is RetryPolicy.

Namespace: PostSharp.Patterns.Caching.Resilience
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public interface IRetryPolicy

Methods

Name Description
TryAsync(OperationKind, int, Exception, ref object, CancellationToken)

Determines if a Redis transaction should be tried, and throws a CachingException if it cannot.