Performing periodic audits and best practice

Posted by DTown on Stack Overflow See other posts from Stack Overflow or by DTown
Published on 2010-04-09T18:57:28Z Indexed on 2010/04/09 19:03 UTC
Read the original article Hit count: 165

Filed under:

I'm doing a windows form and would like an audit task to happen every 30 seconds. This audit is essentially checking a series of services on remote computers and reporting back into a richtextbox the status.

Current I have this running in an endless background thread and using an invoker to update the richtextbox in the main form.

Is this best practice? If I made an endless loop in my main form that would prevent any of my buttons from working, correct?

I'm just curious if every time I want to create a periodic audit check I have to create a new thread which checks the status or file or what have you?

© Stack Overflow or respective owner

Related posts about c#