Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in ASP .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
ASP .NET
pause code in a web application?
pause code in a web application?
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
=?Utf-8?B?UGF1bA==?=
#1
pause code in a web application?
Jan 23 '08, 02:25 AM
Hi just wondering if running a web application in a single thread is it
possible to add a pause in the code?
Thanks
--
Paul G
Software engineer.
Hans Kesting
#2
Jan 23 '08, 08:55 AM
Re: pause code in a web application?
After serious thinking Paul wrote :
Hi just wondering if running a web application in a single thread is it
possible to add a pause in the code?
Thanks
System.Threadin g.Thread.Sleep( ...) with a TimeSpan or a number of
milliseconds.
but why would you want to do that?
Hans Kesting
Comment
Post
Cancel
Eliyahu Goldin
#3
Jan 23 '08, 09:05 AM
Re: pause code in a web application?
The simple answer is yes. Thread.Sleep(xx ) will do that.
A bit longer answer is that you should review your application architecture
to check if that is indeed what you want and need to do.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Paul" <Paul@discussio ns.microsoft.co mwrote in message
news:3390C908-BC95-4660-940D-F618F45E706D@mi crosoft.com...
Hi just wondering if running a web application in a single thread is it
possible to add a pause in the code?
Thanks
--
Paul G
Software engineer.
Comment
Post
Cancel
Mark Rae [MVP]
#4
Jan 23 '08, 09:25 AM
Re: pause code in a web application?
"Paul" <Paul@discussio ns.microsoft.co mwrote in message
news:3390C908-BC95-4660-940D-F618F45E706D@mi crosoft.com...
Hi just wondering if running a web application in a single thread is it
possible to add a pause in the code?
As others have said, it is possible, but why on earth would you want to
deliberately delay a web response...?
--
Mark Rae
ASP.NET MVP
Mark Rae - JavaScript Disabled
http://www.markrae.net
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment