简体   繁体   中英

MassTransit. Consume from queue with delay

I'm using MassTransit with RabbitMq broker. And I would like to know is it possible to create a particular queue but start consuming messages from it later? fe based on some flag's value.

You could start the bus once, which creates the topology in RabbitMQ, and then Stop the bus. At a later time you could create it again, and then Start() it.

You can't Start a previously Started and Stopped bus, but you can do the same configuration at the prescribed interval and Start that instance at that time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM