Windowsservice needs to receive events

  • Thread starter Mathias Fritsch
  • Start date
M

Mathias Fritsch

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
 
K

Kevin Spencer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top