playing with dotnet core 23 - dependency injection part 4 using interfaces, inheritance and Construc

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



Duration: 0:00
25 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

interfaces
https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/types/interfaces

inheritance
https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/object-oriented/inheritance

constructors
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/constructors


----------------- Video Sections -------------------------------
Chapters:
0:00 Constructors for injection
6:11 interfaces for dependency injection
12:33 inheritance for associating an interface with its implementation classes
15:00 ensuring that the dependent class uses the interfaces for dependency injection
19:41 doing up interfaces for our patty and buns class
22:30 changing the dependent class to use interfaces
23:32 swapping dependencies is easy once you set up dependency injection
24:50 loose coupling concept
26:16 recap
27:00 demonstration: changing a dependency without changing the dependent class
30:26 conclusion

--------------------[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-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
2022-03-04playing with dotnet core 14 - html form validators for the celsius to fahrenheit converter