A device monitor implemented with C# 4.0 and TPL