Skip to content

beyond-code-github/AzureNetQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f8df269 · Jul 31, 2014
Mar 26, 2014
Jul 31, 2014
Jul 30, 2014
Jul 31, 2014
Jul 31, 2014
Mar 26, 2014
Jul 31, 2014
Mar 20, 2013
Mar 19, 2014
Jul 9, 2014
Jul 31, 2014
Mar 19, 2014
Jun 25, 2014
Mar 19, 2014
Feb 28, 2013

Repository files navigation

AzureNetQ Logo

A Nice .NET API for Microsoft Azure Service Bus & Service Bus for Windows. Please note that documentation is currently under construction

Goals:

  1. To make working with Microsoft Service Bus on .NET as easy as possible.
  2. To build an API that is close to interchangable with EasyNetQ.

To connect to Service Bus...

var bus = AzureBusFactory.CreateBus("Endpoint=sb://servicebus/ServiceBusDefaultNamespace;StsEndpoint=https://servicebus:10355/ServiceBusDefaultNamespace;RuntimePort=10354;ManagementPort=10355");

To publish a message...

bus.Publish(message);

To subscribe to a message...

bus.Subscribe<MyMessage>(msg => Console.WriteLine(msg.Text));

Remote procedure call...

var request = new TestRequestMessage {Text = "Hello from the client! "};
bus.Request<TestRequestMessage, TestResponseMessage>(request, response => 
    Console.WriteLine("Got response: '{0}'", response.Text));

RPC server...

bus.Respond<TestRequestMessage, TestResponseMessage>(request => 
	new TestResponseMessage{ Text = request.Text + " all done!" });

Getting started

Just open AzureNetQ.sln in VisualStudio 2013 and build.

All the required dependencies for the solution file to build the software are included. To run the explicit tests that send messages you will have to be running the AzureNetQ.Tests.SimpleService application and have a working Service Bus for Windows install (Blog post coming)

Mono specific

Unlike EasyNetQ, AzureNetQ has not yet been tested on Mono. If you would like to help with this, please get in touch with @roysvork on twitter!

About

An easy to use .NET API for Azure Service Bus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages