문제

For some reason the queue hosted on windows azure is not respecting the .DefineEndpointName() configuration.

The queue name on Azure Bus is always named after the worker role that's hosting it. While this is fine, in general, I'd feel a lot better if there was an option to manually override the convention.

How can I define my own queue name?

도움이 되었습니까?

해결책

There is a configuration setting that can be used to control the queue name:

You can add it to your service configuration files like this,

<Setting name="AzureQueueConfig.QueueName" value="yourqueue" />

Or add it in app.config like this:

<AzureQueueConfig QueueName="yourqueue" />

PS: Define endpoint name should work as well, can you reproduce the issue in a small sample and file it as an issue on https://github.com/nservicebus/nservicebus

Thanks, Yves

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top