Created
January 9, 2013 21:35
-
-
Save timsavery/4497168 to your computer and use it in GitHub Desktop.
Proposed Messaging Subscriber API
This file contains hidden or 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
var subscription = new Subscriber().CreateSubscription().ToServiceMessages<IEchoService>(); | |
subscription.MessageReceived += message => { | |
Console.Writeline(x.Body); | |
}; | |
subscription.Start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment