An Introduction to OwningComponentBase
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser