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 ErrorPolicyChain class.
Declaration
public ErrorPolicyChain(params ErrorPolicyBase[] policies)
Parameters
Type | Name | Description |
---|---|---|
ErrorPolicyBase[] | policies | The policies to be chained. |
ErrorPolicyChain(IEnumerable<ErrorPolicyBase>)
Initializes a new instance of the ErrorPolicyChain class.
Declaration
public ErrorPolicyChain(IEnumerable<ErrorPolicyBase> policies)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ErrorPolicyBase> | policies | The policies to be chained. |
Methods
| Improve this doc View sourceBuild(IServiceProvider)
Returns the actual error policy implementation, built using the provided IServiceProvider.
Declaration
public IErrorPolicyImplementation Build(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The IServiceProvider to be used to build the error policy. |
Returns
Type | Description |
---|---|
IErrorPolicyImplementation | An instance of IErrorPolicyImplementation that can be used to handle the processing error. |