Ejemplo n.º 1
0
    public static Task RemoveAllAsync <TEntity>(
        this IAsyncStore <TEntity> store, CancellationToken cancellation, params TEntity[] entities)
        where TEntity : class
    {
        AllMethodContracts(store, entities);

        return(store.RemoveAllAsync(entities, cancellation));
    }
Ejemplo n.º 2
0
 public static Task RemoveAllAsync <TEntity>(
     this IAsyncStore <TEntity> store, params TEntity[] entities)
     where TEntity : class => store.RemoveAllAsync(CancellationToken.None, entities);