Is SynchronizationContext null on an ASP.NET Core 1.0 website? This code throws an exception on my system:
app.Use(async (context, next) => { var sc = System.Threading.SynchronizationContext.Current; if (sc == null) { throw new Exception("SynchronizationContext is null"); }
source share