Skip to main content
5 events
when toggle format what by license comment
Nov 23, 2023 at 11:01 comment added Saï @Flater Depending on the D.I. configuration for the way to use a dependency make the behavior less discoverable IMHO. That's why i'd rather have a factory than depending on transient as it's less obvious reading at the code at hand.
Sep 17, 2023 at 23:14 comment added Flater Note also that a factory is not the only way to achieve individual contexts. You can also inject the context itself but set your DI registration to be transient (i.e. every injection is a new instance) or scoped (if you manage your scopes to that degree)
Dec 21, 2022 at 11:07 review Late answers
Dec 23, 2022 at 20:52
S Dec 21, 2022 at 10:50 review First answers
Jan 2, 2023 at 13:36
S Dec 21, 2022 at 10:50 history answered Saï CC BY-SA 4.0