Dependency Injection
- ACS Acc
- Jul 27, 2022
- 1 min read
Add own method call in program.cs
- Transient = New instance every time
- Singleton = An instance once
- Scoped = instance per connection mixing both Transient/Singleton
Project
Create a constructor in the Controller
Instantiate the constructor
Comments