/// <summary>
 /// Deletes a table in the storage account.
 /// </summary>
 /// <param name="tableName">The table name to create.</param>
 /// <param name="cancellationToken">A <see cref="CancellationToken"/> controlling the request lifetime.</param>
 /// <returns></returns>
 public virtual async Task <Response> DeleteTableAsync(string tableName, CancellationToken cancellationToken = default)
 {
     using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(DeleteTable)}");
     scope.Start();
     try
     {
         return(await _tableOperations.DeleteAsync(tableName, null, cancellationToken : cancellationToken).ConfigureAwait(false));
     }
     catch (Exception ex)
     {
         scope.Failed(ex);
         throw;
     }
 }
Example #2
0
 public virtual async Task <Response> DeleteTableAsync(string tableName, CancellationToken cancellationToken = default) =>
 await _tableOperations.DeleteAsync(tableName, null, cancellationToken : cancellationToken).ConfigureAwait(false);