2017-01-31 11:01:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti
|
|
|
|
|
{
|
2019-08-14 10:20:53 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Translates message classes into their target exchange.
|
|
|
|
|
/// </summary>
|
2017-01-31 11:01:08 +00:00
|
|
|
|
public interface IExchangeStrategy
|
|
|
|
|
{
|
2019-08-14 10:20:53 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines the exchange belonging to the given message class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="messageType"></param>
|
|
|
|
|
/// <returns></returns>
|
2017-01-31 11:01:08 +00:00
|
|
|
|
string GetExchange(Type messageType);
|
|
|
|
|
}
|
|
|
|
|
}
|