Run some background tasks in .net