Interface ISkipMessageErrorPolicyCallback
- Namespace
- Silverback.Messaging.Consuming.ErrorHandling
- Assembly
- Silverback.Integration.dll
Declares the OnSkippingMessageAsync(IRawInboundEnvelope, Exception) callback.
public interface ISkipMessageErrorPolicyCallback : IErrorPolicyCallback
Methods
OnSkippingMessageAsync(IRawInboundEnvelope, Exception)
Called when the SkipMessageErrorPolicy is about to be applied, before the message is skipped and its offset committed.
Task OnSkippingMessageAsync(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.