BrickPile.Core.DefaultBrickPileBootstrapper.ConfigureDocumentStoreInternal C# (CSharp) Method

ConfigureDocumentStoreInternal() private method

Configures the document store internal.
private ConfigureDocumentStoreInternal ( EmbeddableDocumentStore documentStore ) : void
documentStore Raven.Client.Embedded.EmbeddableDocumentStore The document store.
return void
        private void ConfigureDocumentStoreInternal(EmbeddableDocumentStore documentStore)
        {
            documentStore.RegisterListener(new StoreListener(this.OnPagePublish, this.OnPageSave, this.OnPageUnPublish));
            documentStore.RegisterListener(new DeleteListener(this.OnDocumentDelete));

            IndexCreation.CreateIndexes(typeof (DefaultBrickPileBootstrapper).Assembly, documentStore);
        }