Hi,
For all your endpoints:
In order to use MSMQ as your transport, you'll need to set the transport to MSMQ instead of the learning transport (which is the default).
i.e. endpointConfiguration.UseTransport<MsmqTransport>();
You'll need to also set a persistence other than LearningPersistence. If you're just testing, you can use the InMemoryPersistence.
endpointConfiguration.UsePersistence<InMemoryPersistence>();
In the subscriber endpoint, make sure you have the error forwarding on by adding:
endpointConfiguration.SendFailedMessagesTo("error");
The subscriber endpoint will also need to subscribe to the event. To do this:
var transport = endpointConfiguration.UseTransport<MsmqTransport>();
var routing = transport.Routing();
routing.RegisterPublisher(
eventType: typeof(OrderPlaced),
publisherEndpoint: "Samples.StepByStep.Server");
This should get you going with the Step by Step sample to use MSMQ.
Hope this helps you. Let us know if you have further questions.
I'll discuss with the team on how we can make this more clearer on our documentation.
Thanks,
Indu Alagarsamy
Particular Software