2019-08-15 09:32:39 +00:00
|
|
|
|
// ReSharper disable UnusedMember.Global
|
2021-05-29 19:51:58 +00:00
|
|
|
|
// ReSharper disable UnusedMemberInSuper.Global
|
2018-12-19 19:50:56 +00:00
|
|
|
|
|
2017-02-12 20:43:30 +00:00
|
|
|
|
namespace Tapeti.Config
|
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides access to information about the message being published.
|
|
|
|
|
/// </summary>
|
2017-02-12 20:43:30 +00:00
|
|
|
|
public interface IPublishContext
|
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides access to the Tapeti config.
|
|
|
|
|
/// </summary>
|
|
|
|
|
ITapetiConfig Config { get; }
|
2017-02-12 20:43:30 +00:00
|
|
|
|
|
2019-08-13 18:30:04 +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; }
|
2019-08-13 18:30:04 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The instance of the message class.
|
|
|
|
|
/// </summary>
|
2017-02-12 20:43:30 +00:00
|
|
|
|
object Message { get; }
|
2019-08-13 18:30:04 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides access to the message metadata.
|
|
|
|
|
/// </summary>
|
|
|
|
|
IMessageProperties Properties { get; }
|
2017-02-12 20:43:30 +00:00
|
|
|
|
}
|
|
|
|
|
}
|