예제 #1
0
        private void InitializeTriggersExceptIndexCodecs()
        {
            FileCodecs.OfType <IRequiresFileSystemInitialization>().Apply(initialization => initialization.Initialize(this));

            PutTriggers.Init(disableAllTriggers).OfType <IRequiresFileSystemInitialization>().Apply(initialization => initialization.Initialize(this));

            MetadataUpdateTriggers.Init(disableAllTriggers).OfType <IRequiresFileSystemInitialization>().Apply(initialization => initialization.Initialize(this));

            RenameTriggers.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));

            SynchronizationTriggers.Init(disableAllTriggers).OfType <IRequiresFileSystemInitialization>().Apply(initialization => initialization.Initialize(this));
        }
예제 #2
0
        private void SecondStageInitialization()
        {
            FileCodecs
            .OfType <IRequiresFileSystemInitialization>()
            .Apply(initialization => initialization.SecondStageInit());

            PutTriggers.Apply(initialization => initialization.SecondStageInit());

            MetadataUpdateTriggers.Apply(initialization => initialization.SecondStageInit());

            RenameTriggers.Apply(initialization => initialization.SecondStageInit());

            DeleteTriggers.Apply(initialization => initialization.SecondStageInit());

            ReadTriggers.Apply(initialization => initialization.SecondStageInit());

            SynchronizationTriggers.Apply(initialization => initialization.SecondStageInit());
        }