private async Task DeleteAllWorkers(IWorkerTable table) { var workers = await table.List(); foreach (var worker in workers) { await table.Delete(worker); } }
public static async Task <IEnumerable <IWorkerInfo> > ListStale(this IWorkerTable table) { var workers = await table.List(); return(workers.Where(w => w.IsStale)); }