pause code in a web application?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?UGF1bA==?=

    #1

    pause code in a web application?

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

    • Eliyahu Goldin

      #3
      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]




      "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

      • Mark Rae [MVP]

        #4
        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


        Comment

        Working...