Services and properties

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

I have a service that I need to use to monitor a folder, but I need to tell
it what folder to monitor... a setting that could be changed if needed...
what do you guys suggest as the best way to set a setting for a windows
service? or how would you guys go about doing it? thanks!
 
Brian,
A number of options come to mind, which include but are not limited to:
- app.config file
- "command line" parameter to executable
- .NET remoting

Which to use, depends on how dynamic you want changing the "setting" to
be...

Hope this helps
Jay
 
Jay - I am doing the same thing with the service and am using the app.config file. When I change the .exe.config file, and stop and start my service, the new value is not showing. Am I missing something ??
Thanks
 
Back
Top