Skip to content

Instantly share code, notes, and snippets.

@mookid8000
Created September 18, 2014 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mookid8000/fec9386fddb609b2ab31 to your computer and use it in GitHub Desktop.
Save mookid8000/fec9386fddb609b2ab31 to your computer and use it in GitHub Desktop.
Rebus sends to nonexistent queue
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