Mark van Renswoude
f8fca5879c
- Compiles, but that's about it. Plenty of ToDo's left before it will run. Beware, ye who enter here. - Cleanup of the internals, with the aim to keep the interface to application code compatible - Added the ability to declare durable queues on startup and update the bindings - Possibly fixed an issue with publish timeouts being logged after a reconnect
19 lines
541 B
C#
19 lines
541 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Tapeti.Config
|
|
{
|
|
/// <summary>
|
|
/// Denotes middleware that processes all messages.
|
|
/// </summary>
|
|
public interface IMessageMiddleware
|
|
{
|
|
/// <summary>
|
|
/// Called for all bindings when a message needs to be handled.
|
|
/// </summary>
|
|
/// <param name="context"></param>
|
|
/// <param name="next">Call to pass the message to the next handler in the chain</param>
|
|
Task Handle(IMessageContext context, Func<Task> next);
|
|
}
|
|
}
|