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)
Dependencies
- EnterpriseLibrary.Common(>= 6.0.1304)
- EnterpriseLibrary.ExceptionHandling(>= 6.0.1304)
Tags
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"/>.