Open sandboxFocus

Class DefaultExceptionHandlingPolicy

The default implementation of IExceptionHandlingPolicy. Logs and swallows all exceptions and try to recover from failed write operations by invalidating the cache in the background.

Inheritance
DefaultExceptionHandlingPolicy
Namespace: PostSharp.Patterns.Caching.Resilience
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public class DefaultExceptionHandlingPolicy : IExceptionHandlingPolicy

Constructors

Name Description
DefaultExceptionHandlingPolicy()

Methods

Name Description
OnExceptionAsync(ExceptionInfo, CancellationToken)

Method invoked when an exception is thrown by the CachingBackend implementation. It should return a RecoveryAction.