johnjuuljensen
johnjuuljensen
Thanks for the response. I should have included some motivation and justification, sorry about that. What you show is what we do today. For asp controllers we do it during...
I did consider ThreadLocal, but dropped the idea again since it felt too much like what I was trying to avoid. In hindsight that was silly. I ended up fool-proofing...
I've spent some more time on this and I do have some proposals. The first is regarding the issue discussed in this thread. Even before adding the binding of Identity...
The `Arg(name)` solution looks really nice, for all the reasons you mention. > Could you rephrase or add some details please? Sure. When I was messing around with the ambient...
@MisinformedDNA Do what? Inject identity? If so: That's partially handled by asp.net core in a blackboxy way. I dump some claims into the ClaimsIdentity in my auth handler, and take...
@MisinformedDNA I don't think it's beyond the scope of a DI container, quite the opposite. I've presented the use-case AND [how I do it today](https://github.com/DevTeam/Pure.DI/issues/10#issuecomment-1242756397). The specifics of how I...
This is great. Arg is a much better name ofcourse and obvious in hindsight :) I also tested it with DependsOn and the args propagate nicely to the dependant Resolve...