Class ErrorPolicyChain
A chain of error policies to be sequentially applied.
Implements
Inherited Members
Namespace: Silverback.Messaging.Inbound.ErrorHandling
Assembly: Silverback.Integration.dll
Syntax
public class ErrorPolicyChain : IErrorPolicy
Constructors
| Improve this doc View sourceErrorPolicyChain(params ErrorPolicyBase[])
Initializes a new instance of the Error
Declaration
public ErrorPolicyChain(params ErrorPolicyBase[] policies)
Parameters
Type | Name | Description |
---|---|---|
Error |
policies | The policies to be chained. |
ErrorPolicyChain(IEnumerable<ErrorPolicyBase>)
Initializes a new instance of the Error
Declaration
public ErrorPolicyChain(IEnumerable<ErrorPolicyBase> policies)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Error |
policies | The policies to be chained. |
Methods
| Improve this doc View sourceBuild(IServiceProvider)
Returns the actual error policy implementation, built using the provided
IService
Declaration
public IErrorPolicyImplementation Build(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
IService |
serviceProvider | The IService |
Returns
Type | Description |
---|---|
IError |
An instance of IError |