Re: System.Timer!
- From: "Robson Siqueira" <robson@xxxxxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 12:50:54 -0500
Vai2000,
I would to this. I would set up first a small timer (meaning a small
interval) and then at this timer activation, I would check the datetime.now
and by then set up another time with a bigger interval that would reach the
desired time you want. Using this approach, even that the service is stopped
and then re-started again, it would correct the timer to fire at the right
time.
--
Regards,
Robson Siqueira
Enterprise Architect
"Vai2000" <nospam@xxxxxxxxxxxxx> wrote in message
news:eqVYTQyOHHA.4992@xxxxxxxxxxxxxxxxxxxxxxx
Hi All, I have a Win Svc (.net) running on my server. At midnight I need
to
do some manipulations....how can I invoke a timer at midnight?
Right now I have plugged in the ElapsedEvent which is being called every
30
seconds inside it I check for datetime whether its midnight or not...
Kindly throw some smart suggestions!!!
TIA
.
- References:
- System.Timer!
- From: Vai2000
- System.Timer!
- Prev by Date: Re: A re-announce on GC's defects
- Next by Date: Re: importing csv to datagrid, adding column data
- Previous by thread: Re: System.Timer!
- Next by thread: Re: System.Timer!
- Index(es):
Relevant Pages
|