Avoid awaiting foreign Tasks in ASP.NET Core I have analyzed my project using Microsoft.Visual Studio.Threading.Analyzers.