Beispiel #1
0
 /// <summary>
 /// Deletes an existing queue. This operation will also remove all
 /// associated state including messages in the queue.  (see
 /// http://msdn.microsoft.com/en-us/library/hh780747.aspx for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.IQueueOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <param name='queueName'>
 /// Required. The queue name.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> DeleteAsync(this IQueueOperations operations, string namespaceName, string queueName)
 {
     return(operations.DeleteAsync(namespaceName, queueName, CancellationToken.None));
 }
 /// <summary>
 /// Deletes the queue with the specified queue name, under the specified
 /// account if it exists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account within the specified resource group.
 /// Storage account names must be between 3 and 24 characters in length and use
 /// numbers and lower-case letters only.
 /// </param>
 /// <param name='queueName'>
 /// A queue name must be unique within a storage account and must be between 3
 /// and 63 characters.The name must comprise of lowercase alphanumeric and
 /// dash(-) characters only, it should begin and end with an alphanumeric
 /// character and it cannot have two consecutive dash(-) characters.
 /// </param>
 public static void Delete(this IQueueOperations operations, string resourceGroupName, string accountName, string queueName)
 {
     operations.DeleteAsync(resourceGroupName, accountName, queueName).GetAwaiter().GetResult();
 }