• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

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.....
0
Tom Knowlton
Asked:
Tom Knowlton
  • 4
  • 3
2 Solutions
 
Tom KnowltonWeb developerAuthor Commented:
Hmmmm......sort of sounds like a system tray icon......

?????
0
 
Tom KnowltonWeb developerAuthor Commented:
I mean...I think I am describing a windows app that runs from the system tray.....
0
 
millsoftCommented:
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.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
Tom KnowltonWeb developerAuthor Commented:
>>>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?
0
 
TransBindCommented:
0
 
Tom KnowltonWeb developerAuthor Commented:
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?
0
 
millsoftCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now