Skip to content

Repository files navigation

Dependency Injection in .NET

Welcome to the Dependency Injection in .NET project! 🎉 This repository is a hands-on demonstration of how to use AddScoped, AddSingleton, and AddTransient in ASP.NET Core applications. It aims to provide a clear understanding of these lifetimes and how they can be applied effectively in real-world scenarios.

Project Overview Dependency Injection (DI) is a cornerstone of modern .NET development. It promotes loosely coupled and testable code by managing object lifetimes and dependencies automatically.

In this project, you'll find:

Scoped Services: Scoped services are created once per request and shared throughout the request's lifetime. Singleton Services: Singleton services are created once and shared across the entire application lifecycle. Transient Services: Transient services are created every time they are requested, ensuring a new instance for each use.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages