An event loop implementation for .NET