Skip to content

Instantly share code, notes, and snippets.

@reidev275
Last active August 29, 2015 14:03
Show Gist options
  • Save reidev275/b79751becb2d6b8cc846 to your computer and use it in GitHub Desktop.
Save reidev275/b79751becb2d6b8cc846 to your computer and use it in GitHub Desktop.
EasyNetQ AutoSubscriber
class Program
{
static void Main(string[] args)
{
using (var bus = RabbitHutch.CreateBus("host=localhost"))
{
var subscriber = new AutoSubscriber(bus, "Subscriber");
subscriber.SubscribeAsync(Assembly.GetExecutingAssembly());
Console.WriteLine("Listening for messages. Hit <return> to quit.");
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment