Let's say I have two windows services running. One service is 'Polling' - it polls the database for print jobs. As soon as the new print job is found, another service - 'Printing' - must send the job to the printer.
(Why I can not do it with one service is a separate issue, let's just say there is a reason for that).
The simple solution idea that I have is for the 'Polling' service to create and save the print job to a file somewhere, and for the 'Printing' service to monitor that location, read the file and execute the print job.
Is there a better way to do it - is it possible to somehow invoke the 'Printing' functionality from the 'Polling' service directly?
Development tool is .NET 3.5/C# if that matters.