internal void Save(DisposableSaveHandle saveHandle) { BeforeSave(saveHandle); if (ShouldSave(saveHandle.Info)) { _auditingStore.Save(saveHandle.Info); } }
internal async Task SaveAsync(DisposableSaveHandle saveHandle) { BeforeSave(saveHandle); if (ShouldSave(saveHandle.Info)) { await _auditingStore.SaveAsync(saveHandle.Info); } }
protected virtual void PostSave(DisposableSaveHandle saveHandle) { ExecutePostContributors(saveHandle.Info); }
protected virtual void PreSave(DisposableSaveHandle saveHandle) { saveHandle.Stopwatch.Stop(); saveHandle.Info.ExecutionDuration = saveHandle.Stopwatch.Elapsed; ExecutePreContributors(saveHandle.Info); }