AspNetCoreDiagnosticScenarios icon indicating copy to clipboard operation
AspNetCoreDiagnosticScenarios copied to clipboard

ASP.NET Core does have a SynchronizationContext when using Blazor

Open Sebazzz opened this issue 1 year ago • 2 comments

Avoid using Task.Result and Task.Wait:

https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/0c82fa823796c38d0436c0c08665c944ab12f91d/AsyncGuidance.md?plain=1#L232

ASP.NET Core Blazor does appear to use a synchronization context, being the RendererSynchronizationContext](https://source.dot.net/#Microsoft.AspNetCore.Components/Rendering/RendererSynchronizationContext.cs,11).

Sebazzz avatar Dec 22 '22 17:12 Sebazzz