I want to configure an NServiceBus instance in order to use the SendLocal
method, which works fine using the following code:
var bus = NServiceBus.Configure.With()
.StructureMapBuilder()
.XmlSerializer()
.MsmqTransport()
.PurgeOnStartup(true)
.UnicastBus()
.LoadMessageHandlers()
.DoNotAutoSubscribe()
.CreateBus()
.Start();
bus.SendLocal(new MyMessage());
However, doing this causes the message to be immediately processed. I would like the bus to not process the message but handle it in another AppDomain later using another NServiceBus instance.
Is it possible?