2018-12-19 19:50:56 +00:00
|
|
|
|
using Tapeti.Config;
|
2017-02-07 15:13:33 +00:00
|
|
|
|
|
|
|
|
|
namespace Tapeti
|
|
|
|
|
{
|
2019-08-14 10:20:53 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Called when an exception occurs while handling a message. Determines how it should be handled.
|
|
|
|
|
/// </summary>
|
2017-02-07 15:13:33 +00:00
|
|
|
|
public interface IExceptionStrategy
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Called when an exception occurs while handling a message.
|
|
|
|
|
/// </summary>
|
2017-10-17 11:29:16 +00:00
|
|
|
|
/// <param name="context">The exception strategy context containing the necessary data including the message context and the thrown exception.
|
2019-08-14 10:20:53 +00:00
|
|
|
|
/// Also proivdes methods for the exception strategy to indicate how the message should be handled.</param>
|
2017-10-17 11:29:16 +00:00
|
|
|
|
void HandleException(IExceptionStrategyContext context);
|
2017-02-07 15:13:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|