I have a WCF service, with multiple clients connecting to it and subscribing for events.
I also have a Worker Thread that runs in the background, along with the hosted WCF service, and performs operations and pushes items into the 'Producer\Consumer Queue'.
How do I make the WCF service act when there are items in the queue, so that it can extract an item from the queue, analyze it - and publish a message to all the subscribed clients ?
I know that WCF service reacts to operations that are called from connected clients, but how do I make it respond when an item is queued into this queue ?
I would appreciate anyone that could answer with a simple code sample, if possible.