C# Class CommonComposition.ComponentCatalog

A custom MEF catalog that provides the behavior of automatically exposing the annotated components from the assemblies or types received in the constructor.
The following example registers all annotated components from the given given assembly with the container configuration: var configuration = new ContainerConfiguration(); configuration.RegisterComponents(typeof(IFoo).Assembly); var container = configuration.CreateContainer();
Inheritance: System.ComponentModel.Composition.Hosting.TypeCatalog
显示文件 Open project: netfx/CommonComposition

Public Methods

Method Description
ComponentCatalog ( ) : System

Initializes a new instance of the ComponentCatalog class.

ComponentCatalog ( IEnumerable types ) : System

Initializes a new instance of the ComponentCatalog class.

Method Details

ComponentCatalog() public method

Initializes a new instance of the ComponentCatalog class.
public ComponentCatalog ( ) : System
return System

ComponentCatalog() public method

Initializes a new instance of the ComponentCatalog class.
public ComponentCatalog ( IEnumerable types ) : System
types IEnumerable The types to scan for -annotated ones.
return System