MEF Constructor Parameters with Multiple Constructors
- by InterWAS
Hi,
i starting to use MEF, and i have a class with multiple constructors, like this:
[Export(typeof(ifoo))]
class foo : ifoo {
void foo() { ... }
[ImportingConstructor]
void foo(object par1) { ... }
}
Everthing works fine, except that the 2nd constructor is never called,
i am using catalog.ComposeExportedValue() when composing, what's wrong?