5min chapter

The Unhandled Exception Podcast cover image

Dependency Injection in .NET with Steve Collins

The Unhandled Exception Podcast

CHAPTER

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

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode