Пример #1
0
 public virtual void MarkForDelete <T>(T entityToDelete, bool physicalDeletion = false) where T : class
 {
     threadSafety.Wait();
     try
     {
         markingTasks.Add(dataWriterAdapter.DeleteAsync(entityToDelete, physicalDeletion));
     }
     finally
     {
         threadSafety.Release();
     }
 }
Пример #2
0
 public virtual void MarkForDelete <T>(T entityToDelete, bool physicalDeletion = false) where T : class
 => markingTasks.Add(dataWriterAdapter.DeleteAsync(entityToDelete, physicalDeletion));