2017-01-31 11:01:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using RabbitMQ.Client;
|
2016-12-11 14:08:58 +00:00
|
|
|
|
|
|
|
|
|
namespace Tapeti.Config
|
|
|
|
|
{
|
2017-01-31 11:01:08 +00:00
|
|
|
|
public interface IMessageContext : IDisposable
|
2016-12-11 14:08:58 +00:00
|
|
|
|
{
|
2017-01-31 11:01:08 +00:00
|
|
|
|
IDependencyResolver DependencyResolver { get; }
|
|
|
|
|
|
|
|
|
|
string Queue { get; }
|
|
|
|
|
string RoutingKey { get; }
|
2016-12-11 14:08:58 +00:00
|
|
|
|
object Message { get; }
|
2017-01-31 11:01:08 +00:00
|
|
|
|
IBasicProperties Properties { get; }
|
|
|
|
|
|
2016-12-11 14:08:58 +00:00
|
|
|
|
IDictionary<string, object> Items { get; }
|
2017-01-31 11:01:08 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Controller will be null when passed to an IBindingFilter
|
|
|
|
|
/// </summary>
|
|
|
|
|
object Controller { get; }
|
2016-12-11 14:08:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|