A user suggested offer an option to export a linq expression in addition to ExportFactory<T>. The idea would be that calls to Arg.Locate<T>() would be replaced by the container with the proper dependency.
This could allow the developer to make more interesting exports that have runtime logic in them while still maintaining the injection hierarchy.
block.ExportExpression(() => new DependentService(Arg.Locate<IBasicService>()));
A user suggested offer an option to export a linq expression in addition to
ExportFactory<T>. The idea would be that calls toArg.Locate<T>()would be replaced by the container with the proper dependency.This could allow the developer to make more interesting exports that have runtime logic in them while still maintaining the injection hierarchy.