C# Class WorldDomination.Raven.Client.DocumentStoreExtensions

显示文件 Open project: PureKrome/WorldDomination.RavenDb

Public Methods

Method Description
AssertDocumentStoreErrors ( this documentStore, bool areDocumentStoreErrorsTreatedAsWarnings = false ) : void

Asserts if the document store has any errors.

InitializeWithDefaultsAsync ( this documentStore, IEnumerable seedData = null, ICollection indexesToExecute = null, ICollection assembliesToScanForIndexes = null, bool areDocumentStoreErrorsTreatedAsWarnings = false ) : Task

Initialized this instance but with some optional settings, like seed data and indexes.

Private Methods

Method Description
CreateIndexes ( ICollection indexesToExecute, ICollection assembliesToScanForIndexes, IDocumentStore documentStore ) : void
CreateSeedDataAsync ( IEnumerable seedData, IDocumentStore documentStore ) : Task
ReportOnInitializedStatistics ( IDocumentStore documentStore ) : void
WaitForStaleIndexesToComplete ( this documentStore ) : void

Method Details

AssertDocumentStoreErrors() public static method

Asserts if the document store has any errors.
public static AssertDocumentStoreErrors ( this documentStore, bool areDocumentStoreErrorsTreatedAsWarnings = false ) : void
documentStore this The Raven document store.
areDocumentStoreErrorsTreatedAsWarnings bool Optional: If there are any server errors, do we downgrade them as warnings or keep them as errors, which stops further processing of the document store.
return void

InitializeWithDefaultsAsync() public static method

Initialized this instance but with some optional settings, like seed data and indexes.
public static InitializeWithDefaultsAsync ( this documentStore, IEnumerable seedData = null, ICollection indexesToExecute = null, ICollection assembliesToScanForIndexes = null, bool areDocumentStoreErrorsTreatedAsWarnings = false ) : Task
documentStore this The Raven document store.
seedData IEnumerable Optional: A collection of data which will be 'seeded' into the new document store.
indexesToExecute ICollection Optional: Any index(es) which should be executed during initialization. They need to be assignable from an AbstractIndexCreationTask.
assembliesToScanForIndexes ICollection Optional: The assembly where the index(es) are located.
areDocumentStoreErrorsTreatedAsWarnings bool Optional: If there are any server errors, do we downgrade them as warnings or keep them as errors, which stops further processing of the document store.
return Task