Closed krasin-ga closed 6 years ago
I've checked in a change to address this but it won't be available till next release (hopefully this weekend), Here are some tests for this change.
You will have to options for your registration factory.
// Locate yourself and pass context through
obj.ExportFactory<IExportLocatorScope, IInjectionContext, ChildDependency>(
(s,c) => new ChildDependency(s.Locate<IInjectionContextDependency>(c)));
// depend directly on context dependency
obj.ExportFactory<IInjectionContextDependency, ChildDependency>(
d => new ChildDependency(d));
Code to reproduce: