Last active
December 20, 2015 10:59
-
-
Save mookid8000/6119790 to your computer and use it in GitHub Desktop.
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
Configure.With(...) | |
.EnableWebCallbacks() | |
.(...) | |
// (...) | |
// just like that | |
adapter.Bus.Send(new SomeRequest {Message = "hello there!"}, | |
(SomeReply reply) => | |
{ | |
Console.WriteLine("Got reply in callback: {0} - YAY!", reply.Message); | |
}); | |
// with a timeout | |
adapter.Bus.Send(new SomeRequest {Message = "hello there!"}, | |
(SomeReply reply) => | |
{ | |
Console.WriteLine("Got reply in callback: {0} - YAY!", reply.Message); | |
}, | |
TimeSpan.FromSeconds(5), | |
() => | |
{ | |
Console.WriteLine("Oh noes!!!1"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment