带有 Azure 服务总线的 NServiceBus,始终检查命名空间和队列是否存在

NServiceBus with Azure Service Bus, always checking existence of namespace and queue

我正在使用 NServiceBus,以 Azure 服务总线作为传输。每次发送消息时,我都会在日志中看到以下内容:

Checking existence cache for '...'
Checking namespace for existance of the queue '...'
Determined that the queue '...' exists
Queue '...' already exists, skipping creation

尽管日志中有噪音(我可以过滤掉这些消息,但这不是重点),但我担心每次检查的开销。我如何配置 NServiceBus 以期望这些名称空间和队列存在并停止检查每条消息?

别担心,它不是一直在远程检查(日志指向检查缓存信息)

https://github.com/Particular/NServiceBus.AzureServiceBus/blob/master/src/Transport/Creation/Resources/AzureServiceBusQueueCreator.cs#L115

如果日志条目打扰您,请随时从您的日志文件中过滤掉它们。