Skip to main content
edited title
Link
smned
  • 111
  • 1
  • 4

Best way to implement C#Windows service in C#

added 20 characters in body
Source Link
Ewan
  • 79.8k
  • 5
  • 83
  • 179

I have written a C# service using MVC (No view). 

The program starts execution and processes some data from database and stores some aggregated data and works just fine in VB whenever i run it. 

What i have an issue with is deploying it to production. Whenever i prepare an installation and run it on production server a service is installed and shows up on the list of services. 

What i am trying to achieve is make the service timely or always run in the background so it wouldn't involve me running the service manually. 

I read that time count services are a bad idea(running with set time count down and invoking the run method). 

What are recommended ways of deploying such a service which does database aggregation and populating timely.

I have written a C# service using MVC (No view). The program starts execution and processes some data from database and stores some aggregated data and works just fine in VB whenever i run it. What i have an issue with is deploying it to production. Whenever i prepare an installation and run it on production server a service is installed and shows up on the list of services. What i am trying to achieve is make the service timely or always run in the background so it wouldn't involve me running the service manually. I read that time count services are a bad idea(running with set time count down and invoking the run method). What are recommended ways of deploying such a service which does database aggregation and populating timely.

I have written a C# service using MVC (No view). 

The program starts execution and processes some data from database and stores some aggregated data and works just fine in VB whenever i run it. 

What i have an issue with is deploying it to production. Whenever i prepare an installation and run it on production server a service is installed and shows up on the list of services. 

What i am trying to achieve is make the service timely or always run in the background so it wouldn't involve me running the service manually. 

I read that time count services are a bad idea(running with set time count down and invoking the run method). 

What are recommended ways of deploying such a service which does database aggregation and populating timely.

Source Link
smned
  • 111
  • 1
  • 4

Best way to implement C# service

I have written a C# service using MVC (No view). The program starts execution and processes some data from database and stores some aggregated data and works just fine in VB whenever i run it. What i have an issue with is deploying it to production. Whenever i prepare an installation and run it on production server a service is installed and shows up on the list of services. What i am trying to achieve is make the service timely or always run in the background so it wouldn't involve me running the service manually. I read that time count services are a bad idea(running with set time count down and invoking the run method). What are recommended ways of deploying such a service which does database aggregation and populating timely.