Table of Contents

Interface IMoveMessageErrorPolicyCallback

Namespace
Silverback.Messaging.Consuming.ErrorHandling
Assembly
Silverback.Integration.dll
public interface IMoveMessageErrorPolicyCallback : IErrorPolicyCallback

Methods

OnMovingMessageAsync(IRawInboundEnvelope, Exception)

Called when the MoveMessageErrorPolicy is about to be applied, before the message is produced to the target endpoint.

Task OnMovingMessageAsync(IRawInboundEnvelope envelope, Exception exception)

Parameters

envelope IRawInboundEnvelope

The 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.

exception Exception

The exception that caused the policy to be applied.

Returns

Task

A Task representing the asynchronous operation.