Exception handling application block of Enterprise Library extensions for support async operations and default exception shield policy definition NuGet Package

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"/>.




Got any Exception handling application block of Enterprise Library extensions for support async operations and default exception shield policy definition Question?





Info

Version: 1.0.2
Author(s): Ihar Yakimush
Last Update: Friday, March 24, 2017
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/IharYakimush/EntLibLight
NuGet Url: https://www.nuget.org/packages/EntLibExtensions.ExceptionHandling


Install
Install-Package EntLibExtensions.ExceptionHandling
dotnet add package EntLibExtensions.ExceptionHandling
paket add EntLibExtensions.ExceptionHandling
EntLibExtensions.ExceptionHandling Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.8

avg-downloads-per-day

0

days-since-last-release

2583