Class RetryErrorPolicy
This policy retries to process the message that previously failed to be to processed. An optional delay can be specified.
Implements
Inherited Members
Namespace: Silverback.Messaging.Inbound.ErrorHandling
Assembly: Silverback.Integration.dll
Syntax
public class RetryErrorPolicy : RetryableErrorPolicyBase, IErrorPolicy
Constructors
| Improve this doc View sourceRetryErrorPolicy(TimeSpan?, TimeSpan?)
Initializes a new instance of the RetryErrorPolicy class.
Declaration
public RetryErrorPolicy(TimeSpan? initialDelay = null, TimeSpan? delayIncrement = null)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan? | initialDelay | The optional delay to be applied to the first retry. |
TimeSpan? | delayIncrement | The optional increment to the delay to be applied at each retry. |
Methods
| Improve this doc View sourceBuildCore(IServiceProvider)
Returns the actual error policy implementation, built using the provided IServiceProvider.
Declaration
protected override ErrorPolicyImplementation BuildCore(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The IServiceProvider to be used to build the error policy. |
Returns
Type | Description |
---|---|
ErrorPolicyImplementation | An instance of IErrorPolicyImplementation that can be used to handle the processing error. |