[RESOLVED] Several timers... how to control one of them?
Hello to all,
in my project i have multi timers ( System.Threading.timer ),
eath timer is associated to a jobId.
I need to stop one of the timers, i know the jobID.
The problem. How do i know the timer associated to the job X.
I keep the jobId and the timerId ( i think that timer.GetHashCode gives the id of the timer ) in a hashtable.
Thanks for your time and help ( i hope so :) ), sorry about my english...
Re: Several timers... how to control one of them?
Why store the ID of the Timers in the Hashtable when you can just as easily store the Timers themselves? Then indexing the Hashtable by job ID will return a direct reference to the desired Timer.
Re: Several timers... how to control one of them?
Last night when i was in sleeping i through the same :).
Thanks for the reply ;).