Is there a synchronization context in ASP.NET (Core)? #62475
-
I have been looking for a definite answer if one can safely call everywhere Can I? My understanding is that ASP.NET for .NET Framework (not .NET (Core)) still has a synchronization context but not the modern ASP.NET for .NET (Core). I found https://blog.stephencleary.com/2017/03/aspnetcore-synchronization-context.html from Stephen but the way it is put there, is still not definitely clear. It's 99% clear, not 100%. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's not necessary to do it, but doing it won't cause any issues. ASP.NET Core doesn't have a synchronization context. You can safely disable the CA2007 analyzer if that's what's prompting the question. |
Beta Was this translation helpful? Give feedback.
It's not necessary to do it, but doing it won't cause any issues. ASP.NET Core doesn't have a synchronization context. You can safely disable the CA2007 analyzer if that's what's prompting the question.