C# Class 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.
Mostra file Open project: DenisVuyka/Masonry Class Usage Examples

Private Properties

Property Type Description
ConfigureMvc void
PostStartDefaultInitialize void

Public Methods

Method Description
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.

Private Methods

Method Description
ConfigureMvc ( ) : void
PostStartDefaultInitialize ( ) : void

Method Details

AddAssemblies() public static method

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
return void

AddAssemblies() public static method

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.
return void

AddAssembly() public static method

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.
return void

SetConfiguration() public static method

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.
return void