C# Класс 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();
Наследование: System.ComponentModel.Composition.Hosting.TypeCatalog
Показать файл Открыть проект

Открытые методы

Метод Описание
ComponentCatalog ( ) : System

Initializes a new instance of the ComponentCatalog class.

ComponentCatalog ( IEnumerable types ) : System

Initializes a new instance of the ComponentCatalog class.

Описание методов

ComponentCatalog() публичный Метод

Initializes a new instance of the ComponentCatalog class.
public ComponentCatalog ( ) : System
Результат System

ComponentCatalog() публичный Метод

Initializes a new instance of the ComponentCatalog class.
public ComponentCatalog ( IEnumerable types ) : System
types IEnumerable The types to scan for -annotated ones.
Результат System