In this post, we're going to explore the OwningComponentBase class, which was added to Blazor in .NET Core 3 Preview 9. It has a single purpose, to create a service provider scope. This is really useful in Blazor as service scopes behave a bit differently to how they do in say, MVC or Razor Pages applications. Using this class as a base, we can create components which control the lifetime of the service provider scope.

Bharat Dwarkani shared on Sep 21, 2019
favorite_border0 visibility15
favorite_border0 visibility15 share bookmarks