How to NServiceBus Publish() in Fixed interval -


Is it advisable to configure the publisher to run at a given interval, say every hour? In the example I downloaded from the NSSSBS Web site, the publisher also publishes when a user enters the hit ent key. Therefore, instead, I want to publish a message every hour.

Thank you.

You can set a timer with the run method of an IWantToRunAtStartup class. Then every time the timer fires, just publish the bus.

Comments