Created
September 18, 2014 09:39
-
-
Save mookid8000/fec9386fddb609b2ab31 to your computer and use it in GitHub Desktop.
Rebus sends to nonexistent queue
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
try | |
{ | |
var startableBus = Configure.With(new BuiltinContainerAdapter()) | |
.Logging(l => l.None()) | |
.Transport(t => t.UseMsmqInOneWayClientMode()) | |
.CreateBus(); | |
using (var bus = startableBus.Start()) | |
{ | |
bus.Advanced.Routing.Send("NO_CHANCE_THAT_THIS_QUEUE_EXISTS", "hello there!"); | |
} | |
} | |
catch (Exception exception) | |
{ | |
Console.WriteLine(exception); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment