Closed pnarimani closed 6 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vcontainer | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 30, 2023 7:54pm |
From what I see the localExtraInstallers is pretty much a hack used for testing I think it would better to deprecate it then extend it :(
What do you use it for? When creating new LifetimeScopes, the recommended way is by Enqueuing to the GlobalExtraInstallers, which does support multiple installers
Thank you. But I agree with AlonTalmi's view. I am not too positive about breaking Installer into smaller pieces.
As it is, even though
localExtraInstallers
is a list, it's not possible to add more than one installer to it.I added a
EnqueueLocalInstaller
function toLifetimeScope
, which allows users to add more installers tolocalExtraInstallers
list. This function returns anIDisposable
struct which removes the added installer.