I suggest you ...

Extend Automatic Factories to automatically use Parameter Overrides

The current system of Automatic factories in Unity defers resolution when a class's constructor has a dependency of Func<IMyService>. This could be extended to automatically use parameter overrides when it sees a dependency of Func<SomeType,IMyService> and the concrete class implementing IMyService needs a parameter of type SomeType. This would only kick in if an InjectionFactory of the required type wasn't registered.

44 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
antidemon shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base