top of page

Dependency Injection

  • Writer: ACS Acc
    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



 
 
 

Recent Posts

See All
Building the User Interface (UI)

A while back I decided to build a personal project within my role as SE that would make a difference and be impactful for my...

 
 
 
Expose Endpoint

After creating the Controller, expose the endpoint. Exposing the endpoint in the Controller - [HttpGet] <- Attribute - Adding this...

 
 
 

Comments


Post: Blog2_Post
bottom of page