-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
Milestone
Description
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>()));