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.
Показать файл Открыть проект Примеры использования класса

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