示例#1
0
 public static async ValueTask Delete(this IDeleateable delRepo, Guid id, CancellationToken cancellationToken = default)
 {
     await DoDelete(delRepo, id, false, cancellationToken)
     .ConfigureAwait(false);
 }
示例#2
0
 private static async ValueTask DoDelete <TKey>(IDeleateable <TKey> delRepo, TKey id, bool forceDelete, CancellationToken cancellationToken)
 {
     await delRepo.Delete(new[] { id }, forceDelete, cancellationToken)
     .ConfigureAwait(false);
 }
示例#3
0
 public static async ValueTask Delete <TKey>(this IDeleateable <TKey> delRepo, TKey id, bool forceDelete = false, CancellationToken cancellationToken = default)
 {
     await DoDelete(delRepo, id, forceDelete, cancellationToken)
     .ConfigureAwait(false);
 }