C# Class Cocktail.CocktailBootstrapper

Abstract base class to configure the framework.
Inheritance: Caliburn.Micro.BootstrapperBase
Afficher le fichier Open project: IdeaBlade/Punch

Méthodes protégées

Méthode Description
AddValueConverterConventions ( ) : void

Adds the stock ValueConverterConventions to the ValueConverterConventionRegistry and thus to the Caliburn ConventionManager.

BuildUp ( object instance ) : void

Performs injection on the supplied instance.

CocktailBootstrapper ( bool useApplication = true ) : System

Creates an instance of CocktailBootstrapper.

Configure ( ) : void

Configures the framework and sets up the IoC container.

GetAllInstances ( Type serviceType ) : IEnumerable

Locates all instances of the supplied service.

GetInstance ( Type serviceType, string key ) : object

Locates the supplied service.

StartRuntime ( ) : void

Called by the bootstrapper's constructor at runtime to start the framework.

StartRuntimeAsync ( ) : System.Threading.Tasks.Task

Provides an opportunity to perform asynchronous configuration at runtime.

WhenCompleted ( System.Action completedAction ) : void

Calls action when StartRuntimeAsync completes.

Method Details

AddValueConverterConventions() protected méthode

Adds the stock ValueConverterConventions to the ValueConverterConventionRegistry and thus to the Caliburn ConventionManager.
protected AddValueConverterConventions ( ) : void
Résultat void

BuildUp() protected méthode

Performs injection on the supplied instance.
protected BuildUp ( object instance ) : void
instance object The instance to perform injection on.
Résultat void

CocktailBootstrapper() protected méthode

Creates an instance of CocktailBootstrapper.
protected CocktailBootstrapper ( 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

GetAllInstances() protected méthode

Locates all instances of the supplied service.
protected GetAllInstances ( Type serviceType ) : IEnumerable
serviceType System.Type The service to locate.
Résultat IEnumerable

GetInstance() protected méthode

Locates the supplied service.
protected GetInstance ( Type serviceType, string key ) : object
serviceType System.Type The service to locate.
key string The key to locate.
Résultat object

StartRuntime() protected méthode

Called by the bootstrapper's constructor at runtime to start the framework.
protected StartRuntime ( ) : void
Résultat void

StartRuntimeAsync() protected méthode

Provides an opportunity to perform asynchronous configuration at runtime.
protected StartRuntimeAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

WhenCompleted() protected méthode

Calls action when StartRuntimeAsync completes.
protected WhenCompleted ( System.Action completedAction ) : void
completedAction System.Action Action to be performed when configuration completes.
Résultat void