Dependency Injection in C# | Create an App from Requirements to Implementation and Refactor with DI



Dependency Injection in C# | Create an App from Requirements to Implementation and Refactor with DI

Dependency Injection in C# | Create an App from Requirements to Implementation and Refactor with DI

In this video, we are going to learn dependency injection (DI) in C# by creating an application. We are going to start with requirements, then we are going through the process of analysis, object oriented design (OOD), object oriented programming (OOP) to finish the app. Afterwards, we will look at the dependency problems that we are facing and then refactor the codes by applying dependency injection. I will cover Dependency Inversion Principle (DIP), Dependency Injection, lifetime management and even implementing a simple DI container. I hope it helps and let me know if you have any questions or suggestions.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ Complete Web API Consumed by Blazor WebAssebmly:
https://frankliucs.com/webapi-course

๐Ÿ’ŽMy New Blazor Course: Build an e-commerce app with Blazor and Clean Architecture :
https://frankliucs.com/blazor-course

๐Ÿ‘Architecture Course (free for now)
https://frankliucs.com/architecture-course

๐Ÿ… Support me on Patreon: https://www.patreon.com/frankliucs
โ˜• Support me on Buy me a Coffee: https://www.buymeacoffee.com/frankliucs
๐Ÿ”Œ Connect with me: https://frankliucs.com/
๐Ÿฆ Follow me on twitter: https://twitter.com/frankliucs

TABLE OF CONTENT

00:00:00 Requirements
00:01:00 Analysis
00:05:28 Architecture and Object Oriented Design
00:10:25 Implementing the Data Access Layer and Business Logic Layer
00:21:14 Implementing UI Layer
00:33:18 The Dependency Problem
00:37:14 The Solution (DIP)
00:43:04 The Solution (DI)
00:52:23 DI Lifetime Management
00:55:26 Create a simple container

– C# Playlist: https://www.youtube.com/playlist?list=PLgRlicSxjeMOujfrO_jjkCb8xLfLVBEyl

– Blazor Tutorial Playlist: https://www.youtube.com/watch?v=cmFvIzQr1h4&list=PLgRlicSxjeMOwJyqendhcntDqEjCBncci

To subscribe, please click on this link:
https://www.youtube.com/frankliusoftware?sub_confirmation=1

– My Equipment

Mic:
I finally swtiched to his Mic which made a huge difference in my video production:
FIFINE USB Microphone:
https://amzn.to/3aowldu

Mouse:
I switch between these two mouses to take good care of my rist and arm. One is stationary, the other is not.

Logitech M570 Wireless Trackball:
https://amzn.to/33UTymD

Anker 2.4G Wireless Vertical Ergonomic Optical Mouse:
https://amzn.to/33VrDml

#DI #DependencyInjection #csharp #C#

Comments are closed.