Skip to content

gaurav0106/NServiceBus.Azure.Samples

 
 

Repository files navigation

NServiceBus.Azure.Samples

This repository contains samples for some of the common scenarios that the Azure transports are used in.

VideoStore.AzureServiceBus.Cloud

This sample shows how to use the windows azure servicebus for communication between endpoints hosted in a cloudservices solution.

To get started:

First replace the namespace and key values in all template connection strings

Endpoint=sb://{namespace}.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue={key}	

Then, hit F5

VideoStore.AzureServiceBus.OnPremises

This sample shows how to use the windows azure servicebus for communication between endpoints hosted in a traditional nservicebus host exe.

To get started:

First replace the namespace and key values in all template connection strings

Endpoint=sb://{namespace}.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue={key}	

Then, hit F5

VideoStore.AzureStorageQueues.Cloud

This sample shows how to use the windows azure storage queues for communication between endpoints hosted in a cloudservices solution.

To get started:

Just hit F5

VideoStore.AzureStorageQueues.Cloud.DynamicHost

This sample shows how to use the windows azure storage queues for communication between endpoints hosted, colocated in the same cloudservices instance.

To get started:

  • Open and compile the solution
  • Ensure development storage emulator is started
  • invoke upload.ps1 from a powershell command line to upload all worker roles to your endpoint storage

Then, hit F5

Known issues:

There are 2 known issues with this sample

  • When you stop debugging in VS the hosted processes will continue running, as VS does not signal the OnStop worker role method, it's better to hit Stop in the emulator UI instead
  • Logging to console (instead of to file, or to diagnostics storage), can cause processes to deadlock under certain conditions

About

Samples for the Azure transports

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 69.6%
  • C# 14.6%
  • HTML 10.2%
  • PowerShell 2.8%
  • Roff 2.8%