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