C# Class BrickPile.Core.DefaultBrickPileBootstrapper

Responsible for handling the default initialisation of BrickPile
Inheritance: IBrickPileBootstrapper
Afficher le fichier Open project: brickpile/brickpile

Méthodes publiques

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

Méthodes protégées

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

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

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

ConfigureApplicationContainerInternal() protected méthode

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

ConfigureConventions() public méthode

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

ConfigureDocumentStore() public méthode

Configures the document store.
public ConfigureDocumentStore ( IDocumentStore documentStore ) : void
documentStore IDocumentStore The document store.
Résultat void

CreateDefaultDocuments() protected méthode

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

DefaultBrickPileBootstrapper() public méthode

Initializes a new instance of the DefaultBrickPileBootstrapper class.
public DefaultBrickPileBootstrapper ( ) : System
Résultat System

GetApplicationContainer() protected méthode

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

Initialise() public méthode

Initialises BrickPile.
public Initialise ( ) : void
Résultat void

RegisterRoutes() protected méthode

Registers the custom route.
protected RegisterRoutes ( RouteCollection routes ) : void
routes RouteCollection The routes.
Résultat void