Tom Knowlton
asked on
Running something 24 hours a day
If I am constructing a system that runs 24 hours a day......what is the best way to do this?
Are things like this run as web services....or just normal services (what are the different "kinds" of services I can write?)
Also....I will want to run silently in the background (as inobtrusively as possible).....but still have some sort of GUI (windows form) that I can invoke.....to shut it down or configure a setting.....
Are things like this run as web services....or just normal services (what are the different "kinds" of services I can write?)
Also....I will want to run silently in the background (as inobtrusively as possible).....but still have some sort of GUI (windows form) that I can invoke.....to shut it down or configure a setting.....
ASKER
I mean...I think I am describing a windows app that runs from the system tray.....
I suggest running it as a service. You can run EXEs as services and start/stop them remotely. Usually the settings are stored in the registry, and managed with a separate app that tweaks the values in the registry.
ASKER
>>>I suggest running it as a service. You can run EXEs as services and start/stop them remotely. Usually the settings are stored in the registry, and managed with a separate app that tweaks the values in the registry.
Any code samples that show a very basic "hello world" for such an architecture....something I can use to get started?
Any code samples that show a very basic "hello world" for such an architecture....something I can use to get started?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Also....if I write this as a service......with a seperate GUI (for configuration).....do I have to shut down the service before I can run the GUI?
No, the GUI can modify the registry without shuting down your app. Of course, your app will either have to periodically requery the registry for the values to use, or other wise the changes would have no effect unless the service were restarted.
ASKER
?????