Time functionality

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sagaar

    Time functionality

    Hi

    I want to calculate executing of SOAP method and wait till 10sec if it takes
    more than 10 sec I need to throw a error and cancel the requst...

    any ideas how to do this?

    Wit Regsad
    Sagar
  • NIan

    #2
    Re: Time functionality

    create new Thread()
    have a method caputres the start time
    DateTime dt = new DateTime();
    and then get the TimeSpan, if is greater than 10 second.
    throw new Exception().
    terminated the asyncCall

    Comment

    Working...