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
Afficher le fichier Open project: netfx/CommonComposition

Méthodes publiques

Méthode 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 méthode

Initializes a new instance of the ComponentCatalog class.
public ComponentCatalog ( ) : System
Résultat System

ComponentCatalog() public méthode

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