playing with dotnet core 26 - transient vs scoped vs singleton part 1

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



Duration: 32:39
39 views
0


i used the wrong tag helper for the submit button
it's supposed to be
asp-page-handler

------------------ Useful Links ------------------------------------
stackoverflow reference
https://stackoverflow.com/questions/38138100/addtransient-addscoped-and-addsingleton-services-differences

ms dotnet core documentation for scoped/transient/singleton
https://docs.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-usage

------------------ Video Sections --------------------------------
Chapters:
0:00 intro
0:45 some useful pages
2:00 sample code for dependency injection using singleton, scoped and transient
3:29 the random number generator we use to test dependency injection (both implementation and interface)
8:00 copying RNG into chickenBurger branch
9:30 enabling dependency injection in chickenBurger branch
11:40 adding scoped, singleton and transient services into Program.cs
14:30 editing cshtml.cs to receive new dependency injection
25:58 editing cshtml files for new submit button (wrong tag helper oops)
28:00 creating a new onpost function for the submit button
31:37 some bugs (will explain more in part 2)


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

Fluid Mechanics and Git Repos:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSmdAXc6J0XOSQ1b27qsMGt
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube

Petroleum Downstream Crash Course Playlist:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQ13CnhacUqEVk-tZlU4ISE

OpenFOAM for Windows 10 Beginner Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YRhBU4IqSaToQ8_X543YQsZ
https://github.com/theodoreOnzGit/laminar_BL_OpenFOAM

OpenFOAM Intermediate Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSpWX6mSOlwWEOKVa6i_iuE
https://github.com/theodoreOnzGit/thin_pipeflow_snappyHexMesh

OpenFOAM Heat Transfer Playlist and GitHub Repo
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR2Qa3Q9-AzNSF2J9Dc4_qT
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube

Radiation Heat Transfer Learning Journal and Git Repos:
https://www.youtube.com/watch?v=uUzh9kh-WTo&list=PLhPfNw4V4_YRUUVUydQp-n6U-7uu1kJof
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube

Convection Boundary Layer and git Repos:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR9pRBpp101Mkuds49vjQ63
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube

Turbulence Modelling Playlist
https://www.youtube.com/watch?v=F_Rxv9uMM3g&list=PLhPfNw4V4_YSnbYkJIBQ1kRN06Mmxe2Be
https://github.com/theodoreOnzGit/turbulenceModelling

LabView Frequency Analysis and Fun (playlist and git repo)
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQYE7XqTisMBkpm7gqNS_nl
https://github.com/theodoreOnzGit/Ted_labview_YouTube

Control Systems and Frequency Response
https://www.youtube.com/watch?v=qHY6y7JmB2U&list=PLhPfNw4V4_YRUuWnrtClovPKxU_gJOXH-
https://github.com/theodoreOnzGit/matlabFrequencyResponse.git

OpenFOAM C++
https://github.com/theodoreOnzGit/C-_YouTube_OpenFoam
https://www.youtube.com/playlist?list=PLhPfNw4V4_YT9OgqS7ZPlot_Ucxzc6pQJ

OpenFOAM Bash
https://github.com/theodoreOnzGit/Bash_OpenFOAM_YouTube
https://www.youtube.com/playlist?list=PLhPfNw4V4_YT5zjBhfj5Hj4r4D5eXilcU

Basic Samba
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuWJLufBUpNplitReZX0fB
https://github.com/theodoreOnzGit/sambaVideos

Manjaro Tips and Tricks
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuyXBfJxAvzHJTl0UiWx3h

lammps and Discrete Element Modelling (DEM)
https://www.youtube.com/playlist?list=PLhPfNw4V4_YTdRlnLiu2OUXeTf5ZNVQ9E

playing with dotnet core
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQSTR8sqz0aRVzWlQBq3QUw
dotnet core github repo
https://github.com/theodoreOnzGit/dotnetCoreYoutube




Other Videos By Theo Ong Science and Engineering


2022-03-31manjaro tricks - stream video from one pc to another using obs ndi
2022-03-31manjaro tricks - testing out vim nerdtree
2022-03-30manjaro tricks - add line numbering to vim
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



Tags:
Engineering
Math
Science
Thermodynamics
Fluid Mechanics
Chemical
Nuclear
Chemical Potential
Fugacity
Enthalpy
Internal Energy
Entropy
First Law
Second law
Gibbs Free Energy
Hemholtz free energy
heat capacity
constant volume
constant pressure
tutorial
petroleum
oil
refinery
downstream
crude
jet
gasoline
gasoil
diesel
computational fluid dynamics
CFD
OpenFoam
Open
Foam
Fluid mechanics
heat transfer
turbulence
conduction
convection
radiation
Linux
Mint
Ubuntu
Manjaro