0

I mostly use singleton instance however I can't differentiate with other instance.

What exactly singleton, transient, scooped instances and what are the best scenarios to use them.

Steven
  • 166,672
  • 24
  • 332
  • 435
Sangeetha
  • 24
  • 4
  • 1
    There are lots of docs about this, e.g. https://www.c-sharpcorner.com/article/differences-between-scoped-transient-and-singleton-service/, https://www.tektutorialshub.com/asp-net-core/asp-net-core-dependency-injection-lifetime/, https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-7.0#service-lifetimes - there's no point in trying to clear up any confusion when we don't know what you've read or what has confused you. – Jon Skeet Dec 12 '22 at 13:52

0 Answers0