Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Windowsservice needs to receive events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mathias Fritsch - 09 Jul 2007 13:51 GMT
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
Kevin Spencer - 09 Jul 2007 18:51 GMT
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.

Signature

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

> What is a good way to have a windowsservice receive events?
> I want to change some settings of the service without restarting it
[quoted text clipped - 6 lines]
> regards
> Mathias Fritsch
Phil - 11 Jul 2007 10:44 GMT
Use a FileSystemWatcher object on your App.config or other config file.

Phil

> What is a good way to have a windowsservice receive events?
> I want to change some settings of the service without restarting it
[quoted text clipped - 6 lines]
> regards
> Mathias Fritsch

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.