Esempio n. 1
0
        private static async Task<ITableEntity> TryDelete(CloudTable table, ITableEntity entity, int retriesLeft)
        {
            if (retriesLeft == 0)
            {
                return entity;
            }

            try
            {
                await table.DeleteIgnoringNotFound(entity).ConfigureAwait(false);
                return Empty;
            }
            catch (Exception)
            {
                return await TryDelete(table, entity, retriesLeft - 1);
            }
        }