I really want to be able to prevent NSB from creating my queues automatically. I don’t like how it creates them with totally unrestricted permissions. Is this possible?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can provide your custom initialization code by implementing IWantCustomInitialization and specifying it in your code:
void IWantCustomInitialization.Init()
{
NServiceBus.Configure.With()
.DefaultBuilder()
.MsmqTransport()
.DoNotCreateQueues()
.XmlSerializer();
}
标签:
nservicebus