J
Jason Barnett
I'm trying to create a Web Service that acts like a Windows Service. It
contains Start, Stop, and GetStatus methods. Invoking the Start method of
the web service should kick off a timer and the Stop method stops the timer.
I've been able to accomplish all by placing the timer in the Application
object (to persist its state). However, the timer doesn't fire since the web
method has finished executing (and the asmx file is unloaded?).
I've tried creating a seperate thread in hopes that the worker thread would
function after the web method finishes execution, but apparently that didn't
work. I suspect I would need to create a seperate process that runs in the
background, but I hope there's another way.
Could someone give some direction on a quick and easy approach, if one exists?
contains Start, Stop, and GetStatus methods. Invoking the Start method of
the web service should kick off a timer and the Stop method stops the timer.
I've been able to accomplish all by placing the timer in the Application
object (to persist its state). However, the timer doesn't fire since the web
method has finished executing (and the asmx file is unloaded?).
I've tried creating a seperate thread in hopes that the worker thread would
function after the web method finishes execution, but apparently that didn't
work. I suspect I would need to create a seperate process that runs in the
background, but I hope there's another way.
Could someone give some direction on a quick and easy approach, if one exists?