Skip to content

Scoped Services

4 posts4 contributors

+ FollowBe the first to follow this
Write about it

Articles about Scoped Services

  1. Understanding IServiceScopeFactory in .NET: When, Why, and How to Use It (With Real Examples)

    IServiceScopeFactory in .NET enables the manual creation of scoped services, allowing singletons and background tasks to safely utilize scoped dependencies. This ensures proper disposal, prevents memory leaks, and maintains DI lifetimes.

    Jay Krishna ReddyJay Krishna Reddy6,8641,000
  2. Understanding Scope in .NET Core Dependency Injection

    Learn how to manage dependencies effectively, understand when and how to use each service type, and optimize your .NET Core applications for better performance and maintainability.

    Vijay YadavVijay Yadav5,6011,000
  3. Authorization In Razor Pages ASP.NET Core

    Learn how to implement authorization in ASP.NET Core Razor Pages using AddRazorPagesOptions. This guide covers configuring access controls with methods like AuthorizePage, AuthorizeFolder, and AllowAnonymousToPage, including support for areas and Razor Class Libraries.

    Jignesh TrivediJignesh Trivedi63,0451,000
  4. Dependency Injection and Service Lifetimes in .NET

    In this article, I will explain Dependency Injection (DI) is a design pattern that supports the development of loosely coupled code, and it’s also one of the SOLID principles (Dependency Inversion Principle).

    Jitendra MesavaniyaJitendra Mesavaniya6,3271,000