C# Class Cocktail.CocktailMefBootstrapper

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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

Configure() protected méthode

Configures the framework and sets up the IoC container.
protected Configure ( ) : void
Résultat void

PrepareCompositionCatalog() protected méthode

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

PrepareCompositionContainer() protected méthode

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.
Résultat void