Steven Giesel 11/24/2021

Lifetime Scope in Blazor Client and Server Apps

Read Original

This technical article examines the behavior of dependency injection service lifetimes (Singleton, Scoped, Transient) in Blazor applications. It provides a practical demonstration with code examples, comparing how these lifetimes function in Blazor WebAssembly (client-side) versus Blazor Server, explaining differences in instance persistence during navigation, page reloads, and new sessions.

Lifetime Scope in Blazor Client and Server Apps

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