What is a good way to have a windowsservice receive events?
I want to change some settings of the service without restarting it
(mainly log-level of log4net ).

I thought about using MSMQ.
The problem I see with it is: If the service is not startet messages
are not consumed.

regards
Mathias Fritsch

Re: Windowsservice needs to receive events by Kevin

Kevin
Mon Jul 09 12:51:01 CDT 2007

You can have the service set up a TcpListener on a given port, or if you
want to go with .Net 3.0, use a WCF Service Class, which can be configured
to send and receive messages from any number of channels. For more
information on WCF, see
http://msdn2.microsoft.com/en-us/netframework/aa663324.aspx.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Mathias Fritsch" <mathiasfritsch@gmx.de> wrote in message
news:1183985490.232052.50190@57g2000hsv.googlegroups.com...
> What is a good way to have a windowsservice receive events?
> I want to change some settings of the service without restarting it
> (mainly log-level of log4net ).
>
> I thought about using MSMQ.
> The problem I see with it is: If the service is not startet messages
> are not consumed.
>
> regards
> Mathias Fritsch
>



Re: Windowsservice needs to receive events by Phil

Phil
Wed Jul 11 04:45:44 CDT 2007

Use a FileSystemWatcher object on your App.config or other config file.

Phil

"Mathias Fritsch" <mathiasfritsch@gmx.de> wrote in message
news:1183985490.232052.50190@57g2000hsv.googlegroups.com...
> What is a good way to have a windowsservice receive events?
> I want to change some settings of the service without restarting it
> (mainly log-level of log4net ).
>
> I thought about using MSMQ.
> The problem I see with it is: If the service is not startet messages
> are not consumed.
>
> regards
> Mathias Fritsch
>