1
0
mirror of synced 2024-06-26 14:27:38 +00:00
Tapeti/Tapeti/IConsumer.cs
Mark van Renswoude 6c32665c8a [ci skip] Refactored how consume result is handled
Reimplemented the exception strategy and logging
Much XML documentation, such wow
2019-08-14 12:20:53 +02:00

22 lines
722 B
C#

using System.Threading.Tasks;
using Tapeti.Config;
namespace Tapeti
{
/// <summary>
/// Processes incoming messages.
/// </summary>
public interface IConsumer
{
/// <summary>
///
/// </summary>
/// <param name="exchange">The exchange from which the message originated</param>
/// <param name="routingKey">The routing key the message was sent with</param>
/// <param name="properties">Metadata included in the message</param>
/// <param name="body">The raw body of the message</param>
/// <returns></returns>
Task<ConsumeResult> Consume(string exchange, string routingKey, IMessageProperties properties, byte[] body);
}
}