locked
HttpModule to introduce delay in response RRS feed

  • Question

  • User-1134538790 posted
    Hi, Can anyone suggest a nice way to introduce delay in responses? I'm sure there's an easy way a newbie is missing :)
    Friday, June 12, 2009 5:42 AM

Answers

  • User1779468316 posted

    You can include the namespace System.Threading and use a Timer with a callback method when the timer expires. You can also make use of the WaitHandle object.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 12, 2009 11:01 AM

All replies

  • User1779468316 posted

    You can include the namespace System.Threading and use a Timer with a callback method when the timer expires. You can also make use of the WaitHandle object.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 12, 2009 11:01 AM
  • User-1134538790 posted
    Thanks for the response :) I was wondering if there was some built-in way to be honest. I'm not looking to execute any code while waiting so Thread.Sleep() would also do the trick I guess. Cheers!
    Monday, June 15, 2009 5:29 AM