【发布时间】:2017-09-17 05:03:29
【问题描述】:
在 C# 中使用 RawRabbit 时如何指定队列名称?我在任何地方都找不到如何做到这一点的例子。如果实现 INamingConvention 是唯一的方法,那么如何使用 INamingConvention 来实现呢?
我已尝试按照以下方式指定队列名称,但它仍然使用 _appname 作为后缀。
client.SubscribeAsync<string>(async (msg, context) =>
{
Console.WriteLine("Recieved: {0}", msg);
}, cfg=>cfg.WithQueue(q=>q.WithName("ha.test")));
【问题讨论】: