question on threads in asp.net using c#?

  • Thread starter Thread starter Ace
  • Start date Start date
A

Ace

Guest
let us suppose i have a windows service and a web service. in the windows service im calling the web service to perform some operation and after the operation, i control returns back to windows service.

now my problem is, im using Thread.Sleep(2000) in the web service. as im using this, the web service execution goes to sleep state for 2 seconds and the controls returns back to the windows service. but i dont want that to happen.

is it possible to hold the execution of the windows service even if the web service goes into sleep state.

i want the windows service to continue its execution only when the execution of web service is completed.

please any help. thanks in advance
 
Back
Top