islam Zain | Voice Over

Fans

Google-Translate-English to French Google-Traduction-Français-en-espagnol  Google-Traduction-Français-en-allemand  Google-Traduction-Français-en-italien  Google-Traduction-Français-en-allemand BETA Google-Translate-Chinese (Simplifié) BETA Google-Traduction-Français-en-japonais  Google-Traduction-Français-en-coréen BETA
Traduit par +free downloadObtenir ce Widget

search



Application Idle

Written By Unknown on 29 May 2010 | 21:10

Detecting Application Idleness

The Application Idle application was developed to be a small utility that uses class that alerts your code when the application is idle.

If you've ever written a GUI (WinForms) application and wanted to periodically run a background process (such as poll a database), or need to log off the user or close a connection after a certain amount of inactivity, this class may be for you.

I created this class so my application could occasionally check the database for updated records (by other users). I didn't want to run the check while the user was busy entering data, and I certainly didn't want to hit the database in the middle of some transactional save and risk blocking or even deadlocking the operation.

So I needed to know when both the user and the CPU were idle. I also wanted to know when the application became idle, and also wanted periodic updates while the application remained idle.



Download
Application Idle

0 Comments:

Post a Comment