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
source
share