playing with dotnet core 24 - dependency injection part 5 common ways to do dependency injection

Subscribers:
9,750
Published on ● Video Link: https://www.youtube.com/watch?v=Y0pG7flF0Eo



Duration: 0:00
11 views
0


----------------- Useful Links -----------------------------------
What is dependency injection?
https://stackoverflow.com/questions/130794/what-is-dependency-injection

dependency injection demystified
https://www.jamesshore.com/v2/blog/2006/dependency-injection-demystified

how to retrieve a service in razor pages via dependency injection
https://stackoverflow.com/questions/47463206/how-to-retrieve-a-service-in-razor-pages-with-dependency-injection

dependency injection is asp net core
https://docs.microsoft.com/en-us/aspnet/core/mvc/views/dependency-injection?view=aspnetcore-6.0

dependecy injection in ASP.NET Core tutorialsteacher
https://www.tutorialsteacher.com/core/dependency-injection-in-aspnet-core
(this site shows services are special kinds of classes which are managed by the container)



----------------- Video Sections -------------------------------
Chapters:
0:00 Introduction
1:32 dependency injection using services and separating the interface and implementation files
2:15 separating interface and implementation files
5:40 dependency injection by adding a scoped service
9:10 what are services in the context of dotnet core?
13:34 adding scoped services
18:00 scoped service dependency injection only works inside the pageModel constructor for razor pages
20:22 editing the PageModel class for dependency injection
24:30 Conclusion and Recap Recap Recap

--------------------[Playlists and Relevant Github Repositories]---------------------------------------------

Fluid Mechanics and Git Repos:
   • Fluid Mechanics  
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube

Petroleum Downstream Crash Course Playlist:
   • Petroleum Refining  

OpenFOAM for Windows 10 Beginner Playlist and some Git Repos
   • OpenFoam for Windows Newbie Guide  
https://github.com/theodoreOnzGit/laminar_BL_OpenFOAM

OpenFOAM Intermediate Playlist and some Git Repos
   • OpenFOAM Intermediate Videos  
https://github.com/theodoreOnzGit/thin_pipeflow_snappyHexMesh

OpenFOAM Heat Transfer Playlist and GitHub Repo
   • OpenFOAM Heat Transfer  
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube

Radiation Heat Transfer Learning Journal and Git Repos:
   • Radiation Heat Transfer Learning Jour...  
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube

Convection Boundary Layer and git Repos:
   • Convection Heat Transfer  
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube

Turbulence Modelling Playlist
   • Turbulence Modelling 1 - Reynold's Av...  
https://github.com/theodoreOnzGit/turbulenceModelling

LabView Frequency Analysis and Fun (playlist and git repo)
   • LabView Frequency Analysis and Fun  
https://github.com/theodoreOnzGit/Ted_labview_YouTube

Control Systems and Frequency Response
   • Laplace Transforms 1 - basic intuitio...  
https://github.com/theodoreOnzGit/matlabFrequencyResponse.git

OpenFOAM C++
https://github.com/theodoreOnzGit/C-_YouTube_OpenFoam
   • Introductory C++ for OpenFoam Users  

OpenFOAM Bash
https://github.com/theodoreOnzGit/Bash_OpenFOAM_YouTube
   • OpenFOAM Bash  

Basic Samba
   • basicSamba  
https://github.com/theodoreOnzGit/sambaVideos

Manjaro Tips and Tricks
   • Manjaro Tips and Tricks  

lammps and Discrete Element Modelling (DEM)
   • lammps and Discrete Element Modelling  

playing with dotnet core
   • playing with dotnet core  
dotnet core github repo
https://github.com/theodoreOnzGit/dotnetCoreYoutube




Other Videos By Theo Ong Science and Engineering


2022-03-28playing with dotnet core 32 - using dotnet cli to install remove and list packages in linux
2022-03-22playing with dotnet core 31 - databases part 4 messing around with table row insert and delete
2022-03-22playing with dotnet core 30 - databases part 3 messing around with table creation and deletion
2022-03-11playing with dotnet core 29 - databases part 2 create, delete and import databases
2022-03-11playing with dotnet core 28 - databases part 1 installing mariadb and navigating databases & tables
2022-03-11manjaro tricks - installing mariadb mysql and basic setup
2022-03-10playing with dotnet core 27 - transient vs scoped vs singleton part 2
2022-03-10playing with dotnet core 26 - transient vs scoped vs singleton part 1
2022-03-09playing with dotnet core 25 - power converter example with dependency injection and form validation
2022-03-09manjaro tricks - kde plasma 2022 start menu key not working
2022-03-08playing with dotnet core 24 - dependency injection part 5 common ways to do dependency injection
2022-03-07playing with dotnet core 23 - dependency injection part 4 using interfaces, inheritance and Construc
2022-03-07playing with dotnet core 22 - dependency injection part 3 swapping out dependencies
2022-03-07playing with dotnet core 21 - dependency injection part 2 making a class with some dependencies
2022-03-07playing with dotnet core 20 - dependency injection part 1 background knowledge
2022-03-07manjaro tricks - split screens with vim
2022-03-05playing with dotnet core 19 - model validation for forms
2022-03-05playing with dotnet core 18 - playing around with tag helpers asp for and property binding
2022-03-05playing with dotnet core 17 - what are models, views and controllers?
2022-03-05playing with dotnet core 16 - fahrenheit to celsius converter, some revision on classes and objects
2022-03-05playing with dotnet core 15 - a roadmap to learning about model binding and validation