Пример #1
0
        internal void Save(DisposableSaveHandle saveHandle)
        {
            BeforeSave(saveHandle);

            if (ShouldSave(saveHandle.Info))
            {
                _auditingStore.Save(saveHandle.Info);
            }
        }
Пример #2
0
        internal async Task SaveAsync(DisposableSaveHandle saveHandle)
        {
            BeforeSave(saveHandle);

            if (ShouldSave(saveHandle.Info))
            {
                await _auditingStore.SaveAsync(saveHandle.Info);
            }
        }
Пример #3
0
 protected virtual void PostSave(DisposableSaveHandle saveHandle)
 {
     ExecutePostContributors(saveHandle.Info);
 }
Пример #4
0
 protected virtual void PreSave(DisposableSaveHandle saveHandle)
 {
     saveHandle.Stopwatch.Stop();
     saveHandle.Info.ExecutionDuration = saveHandle.Stopwatch.Elapsed;
     ExecutePreContributors(saveHandle.Info);
 }