Nservicebus native host using azure queue

It looks like all of the sample projects shipped with nServicebus are installed where the sender and host are web roles and work roles (and are hosted through the role entry point).

I need to do something like this:

Web role sends a message β†’ Processes a message in the Hosted field

Is it possible to configure the host on the premises only to use Azure Queue Storage (and not MSMQ)?

It seems I can not find a single example of this documented.

+3
source share
2 answers

Yes, it is possible, you just need to specify the transport when initializing the bus:

   var config = Configure.With()
                 .SpringBuilder()
                 .AzureConfigurationSource() <--- Don't use this when working on premise.
                 .XmlSerializer()
                 .UnicastBus()
                 .LoadMessageHandlers()
                 .AzureQueuesTransport()  <--- Configure Azure Storage Queues
                 .IsTransactional(true)
                 .PurgeOnStartup(false)
                 .InMemorySubscriptionStorage();

github: https://github.com/NServiceBus/NServiceBus/tree/master/Samples/Azure

, Windows Azure, AzureConfigurationSource. , , RoleEnvironment. AzureConfigurationSource .

+3

nServiceBus, , Azure Service Bus Azure.

ServiceBus Queues pub/sub .

/, , / REST (.NET API). (. )

MSDN: http://msdn.microsoft.com/en-us/library/windowsazure/hh367516.aspx

, , , :)

-1

All Articles