标签: c# dependency-injection initialization mef dependency-properties
Factory.CreateExport() create's a ExportLifetimeContext<T>
是否有任何方法可以将参数实际传递给它,以便使用参数创建它。我发现了一些不完全符合我要求的示例代码,但它有一些名为Dependency的东西,我想知道这是否是正确的方向?
Dependency
更新
链接的答案有,但我不确定这是“Foo”还是实际的Object。 Custom 'ExportFactory'