コード例 #1
0
 /// <summary>
 /// Get name of queue with root prefix
 /// </summary>
 /// <param name="queue"></param>
 /// <returns></returns>
 public static string GetQueueName(this RabbitMQConfiguration config, string queue)
 => $"{config.Root}.{queue}";
コード例 #2
0
 /// <summary>
 /// Build RMQ endpoint address for known @queue with root prefix
 /// </summary>
 /// <param name="queue">Name of the queue</param>
 /// <returns>RMQ endpoint</returns>
 public static Uri GetEndpoint(this RabbitMQConfiguration config, string queue)
 => new Uri($"{config.Endpoint}/{config.Root}.{queue}");