C# Class BrickPile.Core.DefaultBrickPileBootstrapper

Responsible for handling the default initialisation of BrickPile
Inheritance: IBrickPileBootstrapper
Show file Open project: brickpile/brickpile

Public Methods

Method Description
ConfigureApplicationContainer ( IContainer container ) : void

Configures the application container with any additional registrations

ConfigureConventions ( BrickPile.Core.Conventions.BrickPileConventions brickPileConventions ) : void

Overrides/configures BrickPile's conventions

ConfigureDocumentStore ( IDocumentStore documentStore ) : void

Configures the document store.

DefaultBrickPileBootstrapper ( ) : System

Initializes a new instance of the DefaultBrickPileBootstrapper class.

Initialise ( ) : void

Initialises BrickPile.

Protected Methods

Method Description
ConfigureApplicationContainerInternal ( IContainer container, IDocumentStore documentStore ) : void

Configures the application container with registrations needed for BrickPile to work properly

CreateDefaultDocuments ( IDocumentStore documentStore ) : void

Setups the default documents.

GetApplicationContainer ( ) : IContainer

Gets the Container instance - automatically set during initialise.

RegisterRoutes ( RouteCollection routes ) : void

Registers the custom route.

Private Methods

Method Description
ConfigureDocumentStoreInternal ( EmbeddableDocumentStore documentStore ) : void

Configures the document store internal.

OnDocumentDelete ( string key, IPage page, RavenJObject metadata ) : void

Called when [document delete].

OnPagePublish ( string key, IPage currentPage, RavenJObject metadata ) : void

Called when [page publish].

OnPageSave ( string key, IPage currentPage, RavenJObject metadata ) : void
OnPageUnPublish ( string key, IPage currentPage, RavenJObject metadata ) : void

Called when [page un publish].

Method Details

ConfigureApplicationContainer() public method

Configures the application container with any additional registrations
public ConfigureApplicationContainer ( IContainer container ) : void
container IContainer The container.
return void

ConfigureApplicationContainerInternal() protected method

Configures the application container with registrations needed for BrickPile to work properly
protected ConfigureApplicationContainerInternal ( IContainer container, IDocumentStore documentStore ) : void
container IContainer The container.
documentStore IDocumentStore The document store.
return void

ConfigureConventions() public method

Overrides/configures BrickPile's conventions
public ConfigureConventions ( BrickPile.Core.Conventions.BrickPileConventions brickPileConventions ) : void
brickPileConventions BrickPile.Core.Conventions.BrickPileConventions The brick pile conventions.
return void

ConfigureDocumentStore() public method

Configures the document store.
public ConfigureDocumentStore ( IDocumentStore documentStore ) : void
documentStore IDocumentStore The document store.
return void

CreateDefaultDocuments() protected method

Setups the default documents.
protected CreateDefaultDocuments ( IDocumentStore documentStore ) : void
documentStore IDocumentStore The document store.
return void

DefaultBrickPileBootstrapper() public method

Initializes a new instance of the DefaultBrickPileBootstrapper class.
public DefaultBrickPileBootstrapper ( ) : System
return System

GetApplicationContainer() protected method

Gets the Container instance - automatically set during initialise.
protected GetApplicationContainer ( ) : IContainer
return IContainer

Initialise() public method

Initialises BrickPile.
public Initialise ( ) : void
return void

RegisterRoutes() protected method

Registers the custom route.
protected RegisterRoutes ( RouteCollection routes ) : void
routes RouteCollection The routes.
return void