Exemplo n.º 1
0
 private void SecondStageInitialization()
 {
     DocumentCodecs
     .OfType <IRequiresDocumentDatabaseInitialization>()
     .Concat(PutTriggers.OfType <IRequiresDocumentDatabaseInitialization>())
     .Concat(DeleteTriggers.OfType <IRequiresDocumentDatabaseInitialization>())
     .Concat(IndexCodecs.OfType <IRequiresDocumentDatabaseInitialization>())
     .Concat(IndexQueryTriggers.OfType <IRequiresDocumentDatabaseInitialization>())
     .Concat(AttachmentPutTriggers.OfType <IRequiresDocumentDatabaseInitialization>())
     .Concat(AttachmentDeleteTriggers.OfType <IRequiresDocumentDatabaseInitialization>())
     .Concat(AttachmentReadTriggers.OfType <IRequiresDocumentDatabaseInitialization>())
     .Concat(IndexUpdateTriggers.OfType <IRequiresDocumentDatabaseInitialization>())
     .Apply(initialization => initialization.SecondStageInit());
 }
Exemplo n.º 2
0
 private void InitializeIndexCodecTriggers()
 {
     IndexCodecs.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this));
 }