Tapeti/Tapeti/Config/IPublishContext.cs

37 lines
984 B
C#
Raw Normal View History

// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMemberInSuper.Global
2017-02-12 20:43:30 +00:00
namespace Tapeti.Config
{
/// <summary>
/// Provides access to information about the message being published.
/// </summary>
2017-02-12 20:43:30 +00:00
public interface IPublishContext
{
/// <summary>
/// Provides access to the Tapeti config.
/// </summary>
ITapetiConfig Config { get; }
2017-02-12 20:43:30 +00:00
/// <summary>
/// The exchange to which the message will be published.
/// </summary>
string Exchange { get; set; }
/// <summary>
/// The routing key which will be included with the message.
/// </summary>
2017-02-12 20:43:30 +00:00
string RoutingKey { get; }
/// <summary>
/// The instance of the message class.
/// </summary>
2017-02-12 20:43:30 +00:00
object Message { get; }
/// <summary>
/// Provides access to the message metadata.
/// </summary>
IMessageProperties Properties { get; }
2017-02-12 20:43:30 +00:00
}
}