Chris Sainty 9/17/2019

An Introduction to OwningComponentBase

Read Original

This technical article introduces the OwningComponentBase class in Blazor (.NET Core 3+), explaining its role in creating service provider scopes. It contrasts service scopes (Transient, Scoped, Singleton) in traditional ASP.NET Core MVC/Razor Pages with their behavior in Blazor Server and WebAssembly apps, detailing why OwningComponentBase is needed to control service lifetimes within components.

An Introduction to OwningComponentBase

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week