示例#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;
 }