C# Class Cocktail.CocktailBootstrapper

Abstract base class to configure the framework.
Inheritance: Caliburn.Micro.BootstrapperBase
Show file Open project: IdeaBlade/Punch

Protected Methods

Method 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 method

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

BuildUp() protected method

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

CocktailBootstrapper() protected method

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

GetAllInstances() protected method

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

GetInstance() protected method

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

StartRuntime() protected method

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

StartRuntimeAsync() protected method

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

WhenCompleted() protected method

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