Is it right to use Thread.Sleep (int) in ASP.NET or use a different method?

I want to wait a bit during some testing functions to simulate a server call. Is it right to use Thread.Sleep(int)standby for presentation, or is there a better way to wait for a server?

Note that I will pause long enough to visually see a sufficient lag, even if I do not expect such a delay in the actual application. This is for me to visualize the actual delay that may occur.

I plan to run this both on the local debugger web server VS2010, and in IIS 7. I'm on .NET 3.5

+5
source share
3 answers

Thread.Sleep(int) - , .

+6

MVC SessionState, , , Thread.Sleep(), B A, , .

ASP.NET MVC Ajax, ?

+2

sceanrio. / , .

, Sleeps , , . , ASP.Net , .

+1

All Articles