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