C# 클래스 Masonry.Core.Composition.CompositionProvider

Provides composition services to ASP.NET MVC by integrating DependencyResolver with the Managed Extensibility Framework (MEF). This class is self-configuring and will be enabled by simply being present in the application's Bin directory. Most applications should not need to access this class.
파일 보기 프로젝트 열기: DenisVuyka/Masonry 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConfigureMvc void
PostStartDefaultInitialize void

공개 메소드들

메소드 설명
AddAssemblies ( ) : void

Adds assemblies containing MEF parts to the composition provider. Part types should be in namespaces that include a ".Parts" element in their name in order to be discovered and used.

AddAssemblies ( IEnumerable assemblies ) : void

Adds assemblies containing MEF parts to the composition provider. Part types should be in namespaces that include a ".Parts" element in their name in order to be discovered and used.

AddAssembly ( Assembly assembly ) : void

Adds an assembly containing MEF parts to the composition provider. Part types should be in namespaces that include a ".Parts" element in their name in order to be discovered and used.

SetConfiguration ( ContainerConfiguration configuration ) : void

Used to override the default conventions for controller/part dependency injection. Cannot be used in conjunction with any other methods on this type. Most applications should not use this method.

비공개 메소드들

메소드 설명
ConfigureMvc ( ) : void
PostStartDefaultInitialize ( ) : void

메소드 상세

AddAssemblies() 공개 정적인 메소드

Adds assemblies containing MEF parts to the composition provider. Part types should be in namespaces that include a ".Parts" element in their name in order to be discovered and used.
public static AddAssemblies ( ) : void
리턴 void

AddAssemblies() 공개 정적인 메소드

Adds assemblies containing MEF parts to the composition provider. Part types should be in namespaces that include a ".Parts" element in their name in order to be discovered and used.
public static AddAssemblies ( IEnumerable assemblies ) : void
assemblies IEnumerable Assemblies containing parts to add.
리턴 void

AddAssembly() 공개 정적인 메소드

Adds an assembly containing MEF parts to the composition provider. Part types should be in namespaces that include a ".Parts" element in their name in order to be discovered and used.
public static AddAssembly ( Assembly assembly ) : void
assembly System.Reflection.Assembly An assembly containing parts to add.
리턴 void

SetConfiguration() 공개 정적인 메소드

Used to override the default conventions for controller/part dependency injection. Cannot be used in conjunction with any other methods on this type. Most applications should not use this method.
public static SetConfiguration ( ContainerConfiguration configuration ) : void
configuration ContainerConfiguration A configuration containing the controller types and other parts that /// should be used by the composition provider.
리턴 void