Skip to content
#

aspnetcore

Here are 2,663 public repositories matching this topic...

javiercn
javiercn commented Apr 18, 2022

Use TryAddScoped here instead of AddScoped

https://github.com/dotnet/aspnetcore/blob/02e7e14782509c11e15cd559e5b07211600572ba/src/Components/Server/src/DependencyInjection/ComponentServiceCollectionExtensions.cs#L82

It's not clear to me why we do this, but I suspect that it is because in the past we might have had a different implementation registered by default inside MVC for rendering

help wanted area-blazor good first issue blazor-server

Improve this page

Add a description, image, and links to the aspnetcore topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the aspnetcore topic, visit your repo's landing page and select "manage topics."

Learn more