EntLibExtensions.ExceptionHandling 1.0.2

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

Install-Package EntLibExtensions.ExceptionHandling -Version 1.0.2
dotnet add package EntLibExtensions.ExceptionHandling --version 1.0.2
<PackageReference Include="EntLibExtensions.ExceptionHandling" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntLibExtensions.ExceptionHandling --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Initial version.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 1,681 3/24/2017