Skip to content

Instantly share code, notes, and snippets.

@timsavery
Created January 9, 2013 21:35
Show Gist options
  • Save timsavery/4497168 to your computer and use it in GitHub Desktop.
Save timsavery/4497168 to your computer and use it in GitHub Desktop.
Proposed Messaging Subscriber API
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