0

I would like to be able to pump messages from the azure service bus and dispatch them to Webapi controllers in a worker role. I have seen this excellent (series) article http://pfelix.wordpress.com/2012/03/15/asp-net-web-api-creating-an-host-using-azure-service-bus/ which is very interesting but seems to use WCF . I would prefer to use the newer webapi framework instead. Has anyone already wrapped QueueClient as a source for a custom host?

TheDude
  • 3,796
  • 2
  • 28
  • 51
Dave
  • 1,835
  • 4
  • 26
  • 44

1 Answers1

0

The post that you refer does use the newer Web API framework. Internally, it uses the WCF relay bindings similarly to what happens with Web API self-hosting, which also uses WCF internally.

The code is available here: https://github.com/pmhsfelix/WebApi.Explorations.ServiceBusRelayHost

Hope this helps

Pedro

Pedro Felix
  • 1,056
  • 1
  • 8
  • 12
  • Thanks pedro, it helps a lot. I have done something similar on my side but will will definitely learn from project. – Dave May 14 '13 at 12:46