How to make a service not receive messages at certain times

Posted by miker169 on Stack Overflow See other posts from Stack Overflow or by miker169
Published on 2010-03-29T10:19:55Z Indexed on 2010/03/29 10:23 UTC
Read the original article Hit count: 158

Filed under:
|

I'm currently learning wcf for an up and coming project. The service I am creating is using MSMQ to update the database, but the database can't accept messages at certain times.

The service is going to be a windows service. The one thing I am coming up against at the moment is how I can get the service to stop reading messages from the queue at these times, for instance lets say I don't want to read messages from the queue on sundays. How would I go about implementing this. So that the client can send messages to the queue that update the database but the service doesn't read the messages until monday, so that the database gets all the updates on the monday?

I have started looking at creating a customhost, but I'm not sure if I'm heading in the right direction with this.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about wcf

Related posts about msmq