c# - Is it sane to use Thread.Sleep(int) in ASP.NET or should I use another method? -


I want to wait a bit while doing some testing tasks so that a server call can be emulated. Is there a better way to start waiting for the use of thread.Sleep (int) or what server is waiting for?

Note, I'm stopping for a long time to see me enough time to see, even I do not expect to see such a delay in the actual app. It is a real delay for me to imagine that might be.

I plan to run it in both VS2010 local debugger webservers and IIS 7. I 3.5

threads. Sleep (int) What I will use

Comments