none
when discovering components in MEF, is there a way to determine which assembly the exported object is from? RRS feed

  • Question

  • Hi,

    I am new to MEF. What I want to do is setup the discovery process to be able to discover a list of classes that are derived from three different interfaces and associate them together.

    Example: I have three interfaces (IService, IMachine, IFactory) each assembly that I need to register will have a classes that are derived from each of these interfaces. When I register each of the assemblies I would like to be able to associate the different together so that I can pass the values to another component that will use them. I can see how to register the different classes based on what they are derived from by using RegistrationBuilder and ForTypesDerivedFrom. But I can't see how to be able associate them together. How would you tell which assembly the give exported class is from?

    Thanks

     


    Shawn

    Monday, December 9, 2013 1:54 PM

Answers