![]() |
|
|
#1 |
|
Guest
Posts: n/a
|
Re: thread scheduling, how??
"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message news:df9f3beb-9094-452c-936f-d77130f4c171@b1g2000pra.googlegroups.com... > On Dec 14, 9:31 am, "Jeff" <do...@spam.me> wrote: >> I'm working on a winservice created in .NET 2.0. Now I want to do some >> modications to this winservice. I want this winservice at every start of >> a >> new month to start a thread which pulls data from several webservices and >> saves these data to table... >> >> So I'm wondering how to go about implementing this so that this thread is >> automatically started at a specific time. (lets say 03:30 am at day 1 on >> each month). >> >> maybe the winservice framework has some features for this? > > Is there any reason to put this into the windows service rather than > just using a Windows scheduled task? The other option, if a service is needed, would be to leave a thread sleeping with a waitable timer, not sure what the .NET wrapper for the waitable timer API is. But definitely better not to have a service started when not needed. > > Jon |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|