You must Sign In to post a response.
  • Category: .NET

    Windows Service running at 3 Minute Interval

    Hi ,

    I have created an windows service which is running at every 3 minute interval on which i am doing some data manipulation task, suppose a task is taking more than 3 minutes and service restarts again then the already going on task stopped and starts again. is there any way to ignore the already going task.

    Kindly share some examples.

    thanks
    vinay
  • #769882
    Hi
    you can mention your code like this

    _timer = new Timer(3 * 60 * 1000); // every 3 minutes

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


  • Sign In to post your comments