0
如何在使用RawRabbit與C#時指定隊列名稱?我無法在任何地方找到關於如何去做的例子。如果實施INamingConvention是唯一的方法,那麼如何與INamingConvention合作?RawRabbit使用或不使用INamingConvention設置隊列名稱
我已經嘗試指定隊列名稱的方式,但它仍然使用_appname作爲後綴。
client.SubscribeAsync<string>(async (msg, context) =>
{
Console.WriteLine("Recieved: {0}", msg);
}, cfg=>cfg.WithQueue(q=>q.WithName("ha.test")));
它與一個修正的建議。 .WithSubscriberId(「」)需要附加到cfg.WithQueue而不是q.WithName。謝謝。 – Alpesh