Пример #1
0
 public static string GetRouteName <T>(this IQueueTopic <T> topic, string route = default)
     where T : IQueueMessage
 {
     return(typeof(T).GetRouteName(route));
 }
Пример #2
0
 public static string GetExchangeName <T>(this IQueueTopic <T> topic)
     where T : IQueueMessage
 {
     return(typeof(T).GetExchangeName());
 }
Пример #3
0
 public static string GetQueueName <T>(this IQueueTopic <T> topic, string identifier = default)
     where T : IQueueMessage
 {
     return(typeof(T).GetQueueName(identifier));
 }
Пример #4
0
 protected QueueConsumer(IQueueTopic <T> queue)
 {
     this.Queue = queue;
 }