YoVDO

How Dependency Injection Works in C# - Implementation and Lifetimes

Offered By: Raw Coding via YouTube

Tags

C# Courses GitHub Courses Object-oriented programming Courses Dependency Injection Courses Singleton Pattern Courses

Course Description

Overview

Explore the inner workings of dependency injection in C# through this comprehensive 44-minute tutorial. Gain a deep understanding of dependency injection concepts, implementation, and lifetimes. Learn how to build a custom dependency injection container and resolver with singleton and transient lifetimes. Discover the importance of knowing all possible dependencies for automatic service assembly. Follow along as the instructor demonstrates practical examples using LINQPad and provides source code on GitHub. Dive into topics such as service consumers, activator types, dependency resolution, parameter retrieval, and service lifetimes. By the end of this tutorial, master the skills to implement and utilize dependency injection effectively in your C# projects.

Syllabus

Intro
Hello Service
Service Consumer
Activator
Type
Container
Dependency Resolution
Dependency Type
Get Parameters
Get Service Type
Testing
GetService
Lifetimes
SingletonTransient
Create
Implementation


Taught by

Raw Coding

Related Courses

Introduction to Agile Software Development: Tools & Techniques
University of California, Berkeley via edX
Advanced Topics and Techniques in Agile Software Development
University of California, Berkeley via edX
The Data Scientist’s Toolbox
Johns Hopkins University via Coursera
How to Use Git and GitHub
Udacity
Desarrollo de Videojuegos 3D en Unity: Una Introducción
Universidad de los Andes via Coursera