We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Time out implementation

Last post 03-28-2008 3:31 AM by qüeb.cesar. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-26-2008 9:29 PM

    • Ankor
    • Not Ranked
    • Joined on 03-26-2008
    • Canada
    • New Member
    • Points 20

    Time out implementation

    Hi All,

    I would like to point me to the correct direction. I need to write the code that calls the process however stops this process after entered time interval if it is not finished earlier. Please help

    • Post Points: 10
  • 03-27-2008 3:22 AM In reply to

    Re: Time out implementation

     You must to read more about the Threads. Use the BackGroundWorker component to do this. Placing a Timer into the main form solved the issue with the stop process after an interval.

     

    Regards
     

    • Post Points: 10
  • 03-27-2008 2:22 PM In reply to

    • Ankor
    • Not Ranked
    • Joined on 03-26-2008
    • Canada
    • New Member
    • Points 20

    Re: Time out implementation

    Thank you, qüeb.cesar!

    I'll try to get more info regarding this component. Actually I would like to use this timeout with AD search and what I found is the searcher has ClientTimeout property. I guess I can use it without any problem to cancel search after defined intervall...

    • Post Points: 10
  • 03-28-2008 3:31 AM In reply to

    Re: Time out implementation

    You're welcome.

    Yes.. you can stop the process when you want, only set the appropiate property to allows the cancel process if you choice use only a threads (setting the thread that runs like a workgroundworker).

    More info:

    http://msdn2.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx

    or

     http://msdn2.microsoft.com/en-us/library/hybbz6ke.aspx

    Regards

    • Post Points: 5
Page 1 of 1 (4 items)