开发者

MEF ExportFactory<T> - Any way to pass a parameter value prior to creating an export?

Factory.CreateExport() create's a ExportLifetimeContext<T>

Is there any way to actually pass in a parameter to it so it creates it with a parameter. I found some example code that wasn't exactly what I was looking for, but it had something called Dependency and I'm wondering if that's the right direction to look at?


Update:

The li开发者_如何学运维nk's answer has it, though I'm not sure if that's like "Foo" or an actual Object. Custom 'ExportFactory'

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜