public static async ValueTask Delete(this IDeleateable delRepo, Guid id, CancellationToken cancellationToken = default) { await DoDelete(delRepo, id, false, cancellationToken) .ConfigureAwait(false); }
private static async ValueTask DoDelete <TKey>(IDeleateable <TKey> delRepo, TKey id, bool forceDelete, CancellationToken cancellationToken) { await delRepo.Delete(new[] { id }, forceDelete, cancellationToken) .ConfigureAwait(false); }
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); }