Fixed code analysis warnings
Updated TaskScheduler NuGet