Table of Contents

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

policies ErrorPolicyBase[]

The policies to be chained.

ErrorPolicyChain(IEnumerable<ErrorPolicyBase>)

Initializes a new instance of the ErrorPolicyChain class.

public ErrorPolicyChain(IEnumerable<ErrorPolicyBase> policies)

Parameters

policies IEnumerable<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

serviceProvider IServiceProvider

The IServiceProvider to be used to build the error policy.

Returns

IErrorPolicyImplementation

An instance of IErrorPolicyImplementation that can be used to handle the processing error.