You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The feature is similar to Grace ExportFactory<Dep1, Dep2, R>((d1, d2) => new R(d1, d2)).
So instead of passing the IResolverContext and relying on Service Locator anti-pattern (basically black-box) to Resolve the arbitrary dependency, we explicitly specify the dependencies to Inject.
The text was updated successfully, but these errors were encountered:
dadhi
changed the title
Added RegisterDelegate with the list of dependencies to inject - not to Resolve
Add RegisterDelegate with the list of dependencies to inject - not to Resolve
Jul 15, 2019
The problem is that we could not interpret the typed Func<T1, T2 ..., R> without reflection Invoke but we can do that for Func<object, object, ..., R>.
The feature is similar to Grace
ExportFactory<Dep1, Dep2, R>((d1, d2) => new R(d1, d2))
.So instead of passing the
IResolverContext
and relying on Service Locator anti-pattern (basically black-box) to Resolve the arbitrary dependency, we explicitly specify the dependencies to Inject.The text was updated successfully, but these errors were encountered: