using RabbitMQ.Client;
// ReSharper disable UnusedMember.Global
namespace Tapeti.Config
{
///
/// Provides access to information about the message being published.
///
public interface IPublishContext
{
///
/// Provides access to the Tapeti config.
///
ITapetiConfig Config { get; }
///
/// The exchange to which the message will be published.
///
string Exchange { get; set; }
///
/// The routing key which will be included with the message.
///
string RoutingKey { get; }
///
/// The instance of the message class.
///
object Message { get; }
///
/// Provides access to the message metadata.
///
IMessageProperties Properties { get; }
}
}