private void InitializeTriggers() { PutTriggers.OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); DeleteTriggers.OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); ReadTriggers.OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); IndexUpdateTriggers.OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); }
private void InitializeTriggersExceptIndexCodecs() { FileCodecs.OfType <IRequiresFileSystemInitialization>().Apply(initialization => initialization.Initialize(this)); PutTriggers.Init(disableAllTriggers).OfType <IRequiresFileSystemInitialization>().Apply(initialization => initialization.Initialize(this)); DeleteTriggers.Init(disableAllTriggers).OfType <IRequiresFileSystemInitialization>().Apply(initialization => initialization.Initialize(this)); ReadTriggers.Init(disableAllTriggers).OfType <IRequiresFileSystemInitialization>().Apply(initialization => initialization.Initialize(this)); }
private void SecondStageInitialization() { FileCodecs .OfType <IRequiresFileSystemInitialization>() .Apply(initialization => initialization.SecondStageInit()); PutTriggers.Apply(initialization => initialization.SecondStageInit()); DeleteTriggers.Apply(initialization => initialization.SecondStageInit()); ReadTriggers.Apply(initialization => initialization.SecondStageInit()); }
private void InitializeTriggersExceptIndexCodecs() { DocumentCodecs // .Init(disableAllTriggers) // Document codecs should always be activated (RavenDB-576) .OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); PutTriggers.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); DeleteTriggers.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); ReadTriggers.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); IndexQueryTriggers.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); AttachmentPutTriggers.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); AttachmentDeleteTriggers.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); AttachmentReadTriggers.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); IndexUpdateTriggers.Init(disableAllTriggers).OfType <IRequiresDocumentDatabaseInitialization>().Apply(initialization => initialization.Initialize(this)); }