This sample shows basic usage of MSMQ as storage for subscriptions.
Ensure that MSMQ has been installed.
The application publishes an empty event to itself and writes to the console when the event is received.
endpointConfiguration.UsePersistence<InMemoryPersistence, StorageType.Timeouts>(); endpointConfiguration.UsePersistence<MsmqPersistence, StorageType.Subscriptions>();
MSMQ Persistence only supports subscription storage so another storage is needed for Timeouts since MSMQ doesn't have native timeout support.