# Registering Services

Register your classes with ASP.NET Core's service container in Program.cs - as singleton, scoped or transient - and it creates them and hands them to every controller that asks in its constructor.

![Cheat sheet: Registering Services](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/89fd45865a5a47a29e3c8d6f1ee801cc.webp)

- Category: ASP.NET Core
- Level: Journeyman
- Tags: "AddScoped", "AddTransient", "AddSingleton", @inject, aspnet-core, c-sharp, Dependency Injection (aspnet-core), Service Lifetime
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/dependency-injection-in-aspnet-core-registering-services-cheat-sheet
