Interface IRetryErrorPolicyCallback
- Namespace
- Silverback.Messaging.Consuming.ErrorHandling
- Assembly
- Silverback.Integration.dll
Declares the OnRetryingMessageAsync(IRawInboundEnvelope, Exception) callback.
public interface IRetryErrorPolicyCallback : IErrorPolicyCallback
Methods
OnRetryingMessageAsync(IRawInboundEnvelope, Exception)
Called when the RetryErrorPolicy is about to be applied, before the transaction is rolled back and the delay is applied.
Task OnRetryingMessageAsync(IRawInboundEnvelope envelope, Exception exception)
Parameters
envelopeIRawInboundEnvelopeThe envelope containing the message that couldn't be processed. It's an IInboundEnvelope only if the message was successfully deserialized, since the error could have occurred before or during the deserialization.
exceptionExceptionThe exception that caused the policy to be applied.