T
test
Hello all,
I am developing a windows service (c#, .net 2.0, windows 2003).
When the service starts it performs several functions that depend on
an internet connection, downloading rss feed etc.
The problem is, that if the connections is very slow, it takes a long
time for the status of the service to change from "starting" to
started, sometimes in fact, so long that windows gives up and says
that the service did not respond in a timely fashion.
If I wrap all my onstart functions into a timer.elapsed event instead,
the service status changes from starting to started instantly. I dont
like this though as it is not very eloquant. Is there a better way to
do this?
Many thanks,
Craig
I am developing a windows service (c#, .net 2.0, windows 2003).
When the service starts it performs several functions that depend on
an internet connection, downloading rss feed etc.
The problem is, that if the connections is very slow, it takes a long
time for the status of the service to change from "starting" to
started, sometimes in fact, so long that windows gives up and says
that the service did not respond in a timely fashion.
If I wrap all my onstart functions into a timer.elapsed event instead,
the service status changes from starting to started instantly. I dont
like this though as it is not very eloquant. Is there a better way to
do this?
Many thanks,
Craig