示例#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);
 }