MefHosting Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides VS MEF hosting facilities for unit tests.
public class MefHosting
type MefHosting = class
Public Class MefHosting
- Inheritance
-
MefHosting
- Derived
Constructors
MefHosting() |
Initializes a new instance of the MefHosting class where all assemblies in the test project's output directory are included in the MEF catalog. |
MefHosting(IEnumerable<String>) |
Initializes a new instance of the MefHosting class. |
Fields
PartDiscoverer |
The MEF discovery module to use (which finds both MEFv1 and MEFv2 parts). |
Methods
CreateExportProviderAsync() |
Creates a new MEF container, initialized with all the assemblies specified in the constructor. |
CreateExportProviderAsync(Type[]) |
Creates a one-off ExportProvider based on an explicit list of MEF parts. |
GetCatalogAsync() |
Gets the ComposableCatalog that backs this MEF service. |
GetConfigurationAsync() |
Gets the CompositionConfiguration that backs this MEF service. |