Interacting with Windows Service

Asked By 12348765 Shvartsman
20-Nov-09 08:32 AM
Earn up to 0 extra points for answering this tough question.
I have a C# Windows Service that performs certant actions on periodic bases. The System.Timers.Timer on the separete thread is used perform the actions. Some times those actiones need to be performed on demand. I need a way for console app to instract Windows Service to perform those actions. Thank you in advance

  Those actions should be in separate assemblies

Robbe Morris replied to 12348765 Shvartsman
20-Nov-09 08:48 AM
that can be included with your console application.  You should not have to tie into a windows service at all.

  All you need is a Messaging Queue to cater to your on-demand and scheduled service actions.

[)ia6l0 iii replied to 12348765 Shvartsman
22-Nov-09 04:54 AM
Peter calls it "Self-Updating Windows Service Infrastructure with Command Pattern Message Queue Invoker Service". and here is the article supporting this whole stuff.

And here is a complete step-by-step article at MSDN. This article outlines a Windows service solution designed to process several message queues, using C#. 



Create New Account