❔ Service provider, IDisposable
if i do:
will dispose method called when service goes out of scope?
14 Replies
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
1. no, 2. no 😄
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
let's say my scope it http request
http request end, do all scoped services dispose method will be called
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
i can say yes
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
are scopes expansive?
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
expensive*
TeBeCo
aspnetcore explicitly create a Scope on DI for each request
Quoted by
<@689473681302224947> from #Service provider, IDisposable (click here)
React with ❌ to remove this embed.
english is not my native language 😄
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.