---
title: "Discussion on \"Dependency Injection in .NET (Beginner): Build a TodoService + Understand Lifetimes\" | Hashnode"
description: "Discussion on \"Dependency Injection in .NET (Beginner): Build a TodoService + Understand Lifetimes\". Learn dependency injection in ASP.NET Core minimal APIs by extracting logic into a TodoService, registering it, and understanding Singleton/Scoped/Transient"
url: "https://hashnode.com/posts/dotnet-dependency-injection-todoservice-lifetimes/6978f098e63705d5406c4db1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dependency Injection in .NET (Beginner): Build a TodoService + Understand Lifetimes](https://silviublog.hashnode.dev/dotnet-dependency-injection-todoservice-lifetimes?utm_source=hashnode&utm_medium=feed)

Learn dependency injection in ASP.NET Core minimal APIs by extracting logic into a TodoService, registering it, and understanding Singleton/Scoped/Transient

Jan 27 · 3 min read · silviublog.hashnode.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#net](https://hashnode.com/tag/net)
-   [#csharp-beginners-dotnet-programming](https://hashnode.com/tag/csharp-beginners-dotnet-programming)
-   [#di](https://hashnode.com/tag/di)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#web-api](https://hashnode.com/tag/web-api)
-   [#rest-api](https://hashnode.com/tag/rest-api)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)

## Written by

[Silviu Man](https://hashnode.com/@silviuman)

@silviuman · Romania

  
[View profile](https://hashnode.com/@silviuman)

Freelancer/Full Stack Software Developer with 5+ years

Full Stack Software Developer with 5+ years of experience building and maintaining web and mobile applications using .NET, ASP.NET, SQL,Angular and Ionic. Currently working in the healthcare domain as both a developer and Product Owner on a cross-platform application (iOS, Android, Web). Experienced in integrating AI solutions (ChatGPT API) to optimize user workflows and reduce manual effort. Strong background in Agile/Scrum environments, collaborating closely with team leaders as a Scrum Master, involved in sprint planning, Jira management, and stakeholder communication.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
