S
Stig Hausberg
Hi folks!
I'm currently working in a prototype project as we are moving into dotnet
and I've have stumbled upon an issue someone hopefully can help me with.
The system we are building needs to run a specific part of code at a set of
intervals, lets say once an hour. As the system will be installed on
multiple servers we were hoping that we could avoid to use any sort of
applications/windows services and build this into the asp.net solution we
are creating.
I've been looking into using System.Threading.Timer but it appears as the
garbage collector collects the thread when the refernece dies if I use
subsequent executions (It usually happens after 15-30 sec.). But if I only
invoke the thread once in the future it appears to have a longer timespan
(I've tried up to 6 minutes).
As I'm relative fresh to the more advanced features of dotnet I would
appriciate it if someone enlightened me about this subject or/and could
point me in a direction(best practice) which could help me solve this
problem.
Regards
Stig Hausberg
I'm currently working in a prototype project as we are moving into dotnet
and I've have stumbled upon an issue someone hopefully can help me with.
The system we are building needs to run a specific part of code at a set of
intervals, lets say once an hour. As the system will be installed on
multiple servers we were hoping that we could avoid to use any sort of
applications/windows services and build this into the asp.net solution we
are creating.
I've been looking into using System.Threading.Timer but it appears as the
garbage collector collects the thread when the refernece dies if I use
subsequent executions (It usually happens after 15-30 sec.). But if I only
invoke the thread once in the future it appears to have a longer timespan
(I've tried up to 6 minutes).
As I'm relative fresh to the more advanced features of dotnet I would
appriciate it if someone enlightened me about this subject or/and could
point me in a direction(best practice) which could help me solve this
problem.
Regards
Stig Hausberg