C# Class Cocktail.CocktailMefBootstrapper

Abstract base class to configure the framework to use MEF as the application's IoC container.
Inheritance: CocktailBootstrapper
Mostra file Open project: IdeaBlade/Punch

Protected Methods

Method Description
CocktailMefBootstrapper ( bool useApplication = true ) : System

Creates an instance of CocktailMefBootstrapper.

Configure ( ) : void

Configures the framework and sets up the IoC container.

PrepareCompositionCatalog ( ) : ComposablePartCatalog

Override to substitute the default composition catalog with a custom catalog.

PrepareCompositionContainer ( System.ComponentModel.Composition.Hosting.CompositionBatch batch ) : void

Override to add additional exports to the CompositionHost during configuration.

Private Methods

Method Description
EnsureBootstrapperHasNoExports ( ) : void

Ensures that no MEF ExportAttributes are used in the Bootstrapper

OnCatalogRecomposed ( ) : void
UpdateAssemblySourceFromCatalog ( System.ComponentModel.Composition.Hosting.AggregateCatalog catalog ) : void
UpdateAssemblySourceFromCatalog ( System.ComponentModel.Composition.Hosting.AssemblyCatalog catalog ) : void
UpdateAssemblySourceFromCatalog ( ComposablePartCatalog catalog ) : void

Method Details

CocktailMefBootstrapper() protected method

Creates an instance of CocktailMefBootstrapper.
protected CocktailMefBootstrapper ( bool useApplication = true ) : System
useApplication bool Optionally specify if the bootstrapper should hook into the application object.
return System

Configure() protected method

Configures the framework and sets up the IoC container.
protected Configure ( ) : void
return void

PrepareCompositionCatalog() protected method

Override to substitute the default composition catalog with a custom catalog.
protected PrepareCompositionCatalog ( ) : ComposablePartCatalog
return ComposablePartCatalog

PrepareCompositionContainer() protected method

Override to add additional exports to the CompositionHost during configuration.
protected PrepareCompositionContainer ( System.ComponentModel.Composition.Hosting.CompositionBatch batch ) : void
batch System.ComponentModel.Composition.Hosting.CompositionBatch The composition batch to add to.
return void