The Unhandled Exception Podcast cover image

Dependency Injection in .NET with Steve Collins

The Unhandled Exception Podcast

00:00

Do You Need to Create a Scope?

A singleton is just one for the entire processfactory scope is per request, if you'll use a nice speede nat. Two different requests get two different it's the sicgle. Every single injected thing is its own incident. Avounce to that get's a new instanceyet. So when would you fort scoped one? When would you use that outside of a webby pia or something? Ause i've sometimes seen it fli with if you got a consol up and you've got the host,. And blocks of ithing begin scoped or something, and then you've got a scope. You can use scoped instances within the context of a

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app