开发者

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

开发者 https://www.devze.com 2023-03-17 04:05 出处:网络
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 exa
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

精彩评论

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

关注公众号