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
파일 보기 프로젝트 열기: netfx/CommonComposition

공개 메소드들

메소드 설명
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