Solved

Timer_Elapsed

Posted on 2010-09-19
1
302 Views
Last Modified: 2012-05-10
I am rewriting a Windows Service that must work on a timer.  The original Service seems to have the use of an Elapsed method for the timer using nothing more than Timer.Enabled = True.  Using VS 2010, I only have the use of the Tick method that does not work.  

My code is very simple at this point because I'm just trying to get the timer working.  I have attached the code.  Does anyone know how to gain use of the Elapsed method?

 serviceone.txt
0
Comment
Question by:sherbug1015
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 500 total points
ID: 33711793
I had various issues before with the standard timer classes in services. The specific timer that works best for services is the System.Threading.Timer. I recommend using that timer in your service.
System.Threading.Timer
http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx 
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question