Last active
August 29, 2015 14:03
-
-
Save reidev275/b79751becb2d6b8cc846 to your computer and use it in GitHub Desktop.
EasyNetQ AutoSubscriber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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