EntLibExtensions.ExceptionHandling
Add extension method for ExceptionManager to support exception handling in async actions and functions. public static async Task<TResult>ProcessAsync<TResult>(this ExceptionManager exceptionManager, string policyName, Func<Task<TResult>> action, TResult defaultValue) public static async Task ProcessAsync(this ExceptionManager exceptionManager, string policyName, Func<Task> action) Add "ExceptionPolicyDefinitionFactory" class which is able to create default "ExceptionPolicyDefinition" for implementing exception shielding for component and support customization of it. 1. rethrow all exceptions derived from component base exception <typeparamref name="TBaseException"/> 2. rethrow <see cref="OperationCanceledException"/> 3. wrap generic exceptions to component specific exception <typeparamref name="TBaseException"/>
Activity
- Latest release
- 9y ago
- Total releases
- 1
- Cadence
- —
- Last 12 months
- 0
Details
- First release
- Mar 24, 2017