Implementation of a device monitor in C# with the Task Parallel Library of .NET 4.0