Class ErrorPolicyChain
- Namespace
- Silverback.Messaging.Consuming.ErrorHandling
- Assembly
- Silverback.Integration.dll
A chain of error policies to be sequentially applied.
public class ErrorPolicyChain : IErrorPolicy
- Inheritance
-
ErrorPolicyChain
- Implements
- Inherited Members
Constructors
ErrorPolicyChain(params ErrorPolicyBase[])
Initializes a new instance of the ErrorPolicyChain class.
public ErrorPolicyChain(params ErrorPolicyBase[] policies)
Parameters
policiesErrorPolicyBase[]The policies to be chained.
ErrorPolicyChain(IEnumerable<ErrorPolicyBase>)
Initializes a new instance of the ErrorPolicyChain class.
public ErrorPolicyChain(IEnumerable<ErrorPolicyBase> policies)
Parameters
policiesIEnumerable<ErrorPolicyBase>The policies to be chained.
Methods
Build(IServiceProvider)
Returns the actual error policy implementation, built using the provided IServiceProvider.
public IErrorPolicyImplementation Build(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProviderThe IServiceProvider to be used to build the error policy.
Returns
- IErrorPolicyImplementation
An instance of IErrorPolicyImplementation that can be used to handle the processing error.