Murugesan K S

Murugesan K S

  • NA
  • 4
  • 3.5k

What is the best way to develop an application runs locally?

Aug 1 2013 1:05 PM

Hi,

i would like to know best way to develop an application which runs locally. Here is my requirement and how i used to do all these days

Requirement:

1. Develop a application which runs on a frequent interval(may be 1 minute once) in a windows server class os
2. Do something locally and pass the information to remote server by calling a WCF service

Below is the method i used for the above requirement.

1. Develop a windows service application using (VS 2010 ->New project->C#->Windows->Windows Service)
2. Add a Timer and specify Timer.Interval is 1 minute
3. Write a function to do something
4. Call the function in Timer_Elapsed
5. Add installer (ServiceInstaller and ServiceProcessInstallar)
6. Build the applcation
7. Install this app as windows service  and start it. (Can be viewed in services.msc)

Kindly let me know is there any better way to do the above.

Thanks in advance

Regards,

Murugesan


Answers (3)