コード例 #1
0
 /// <summary>
 /// The namespace description is an XML AtomPub document that defines
 /// the desired semantics for a service namespace. The namespace
 /// description contains the following properties.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <returns>
 /// A response to a request for a list of namespaces.
 /// </returns>
 public static ServiceBusNamespaceDescriptionResponse GetNamespaceDescription(this INamespaceOperations operations, string namespaceName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).GetNamespaceDescriptionAsync(namespaceName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// Lists the available namespaces.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn140232.asp
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <returns>
 /// The response to the request for a listing of namespaces.
 /// </returns>
 public static ServiceBusNamespacesResponse List(this INamespaceOperations operations)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).ListAsync();
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #3
0
 /// <summary>
 /// Creates a new service namespace. Once created, this namespace's
 /// resource manifest is immutable. This operation is idempotent.
 /// (see http://msdn.microsoft.com/en-us/library/windowsazure/jj856303.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <param name='namespaceEntity'>
 /// Required. The service bus namespace.
 /// </param>
 /// <returns>
 /// The response to a request for a particular namespace.
 /// </returns>
 public static ServiceBusNamespaceResponse CreateNamespace(this INamespaceOperations operations, string namespaceName, ServiceBusNamespaceCreateParameters namespaceEntity)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).CreateNamespaceAsync(namespaceName, namespaceEntity);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #4
0
 /// <summary>
 /// The update authorization rule operation updates an authorization
 /// rule for a namespace.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <param name='rule'>
 /// Optional. Updated access authorization rule.
 /// </param>
 /// <returns>
 /// A response to a request for a particular authorization rule.
 /// </returns>
 public static ServiceBusAuthorizationRuleResponse UpdateAuthorizationRule(this INamespaceOperations operations, string namespaceName, ServiceBusSharedAccessAuthorizationRule rule)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).UpdateAuthorizationRuleAsync(namespaceName, rule);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The delete namespace authorization rule operation deletes an
 /// authorization rule for a namespace
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <param name='ruleName'>
 /// Required. The rule name.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse DeleteAuthorizationRule(this INamespaceOperations operations, string namespaceName, string ruleName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).DeleteAuthorizationRuleAsync(namespaceName, ruleName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The Get Operation Status operation returns the status of the
 /// specified operation. After calling an asynchronous operation, you
 /// can call Get Operation Status to determine whether the operation
 /// has succeeded, failed, or is still in progress.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.NotificationHubs.INamespaceOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static LongRunningOperationResponse GetLongRunningOperationStatus(this INamespaceOperations operations, string operationStatusLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).GetLongRunningOperationStatusAsync(operationStatusLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the Primary and Secondary ConnectionStrings to the namespace
 /// (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.NotificationHubs.INamespaceOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <param name='authorizationRuleName'>
 /// Required. The connection string of the namespace for the specified
 /// authorizationRule.
 /// </param>
 /// <returns>
 /// Namespace/NotificationHub Connection String
 /// </returns>
 public static ResourceListKeys ListKeys(this INamespaceOperations operations, string resourceGroupName, string namespaceName, string authorizationRuleName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).ListKeysAsync(resourceGroupName, namespaceName, authorizationRuleName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes an existing namespace. This operation also removes all
 /// associated notificationHubs under the namespace.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj856296.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.NotificationHubs.INamespaceOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <returns>
 /// The response of the CreateOrUpdate Api Management service long
 /// running operation.
 /// </returns>
 public static NamespaceLongRunningResponse BeginDelete(this INamespaceOperations operations, string resourceGroupName, string namespaceName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).BeginDeleteAsync(resourceGroupName, namespaceName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #9
0
 /// <summary>
 /// Checks the availability of the given service namespace across all
 /// Windows Azure subscriptions. This is useful because the domain
 /// name is created based on the service namespace name.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj870968.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <returns>
 /// The response to a query for the availability status of a namespace
 /// name.
 /// </returns>
 public static CheckNamespaceAvailabilityResponse CheckAvailability(this INamespaceOperations operations, string namespaceName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).CheckAvailabilityAsync(namespaceName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates/Updates a service namespace. Once created, this namespace's
 /// resource manifest is immutable. This operation is idempotent.
 /// (see http://msdn.microsoft.com/en-us/library/windowsazure/jj856303.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.NotificationHubs.INamespaceOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the create a Namespace Resource.
 /// </param>
 /// <returns>
 /// The response of the CreateOrUpdate Namespace.
 /// </returns>
 public static NamespaceCreateOrUpdateResponse CreateOrUpdate(this INamespaceOperations operations, string resourceGroupName, string namespaceName, NamespaceCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((INamespaceOperations)s).CreateOrUpdateAsync(resourceGroupName, namespaceName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the ServiceBusManagementClient class.
 /// </summary>
 private ServiceBusManagementClient()
     : base()
 {
     this._namespaces        = new NamespaceOperations(this);
     this._notificationHubs  = new NotificationHubOperations(this);
     this._queues            = new QueueOperations(this);
     this._relays            = new RelayOperations(this);
     this._topics            = new TopicOperations(this);
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Initializes a new instance of the NotificationHubsManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public NotificationHubsManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._namespaces       = new NamespaceOperations(this);
     this._notificationHubs = new NotificationHubOperations(this);
     this._apiVersion       = "2014-09-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the ServiceBusManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public ServiceBusManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._namespaces       = new NamespaceOperations(this);
     this._notificationHubs = new NotificationHubOperations(this);
     this._queues           = new QueueOperations(this);
     this._relays           = new RelayOperations(this);
     this._topics           = new TopicOperations(this);
     this._apiVersion       = "2013-08-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
コード例 #14
0
 /// <summary>
 /// Creates a new service namespace. Once created, this namespace's
 /// resource manifest is immutable. This operation is idempotent.
 /// (see http://msdn.microsoft.com/en-us/library/windowsazure/jj856303.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <param name='region'>
 /// The namespace region.
 /// </param>
 /// <returns>
 /// The response to a request for a particular namespace.
 /// </returns>
 public static ServiceBusNamespaceResponse Create(this INamespaceOperations operations, string namespaceName, string region)
 {
     try
     {
         return(operations.CreateAsync(namespaceName, region).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #15
0
 /// <summary>
 /// The update authorization rule operation updates an authorization
 /// rule for a namespace.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <param name='rule'>
 /// Updated access authorization rule.
 /// </param>
 /// <returns>
 /// A response to a request for a particular authorization rule.
 /// </returns>
 public static ServiceBusAuthorizationRuleResponse UpdateAuthorizationRule(this INamespaceOperations operations, string namespaceName, ServiceBusSharedAccessAuthorizationRule rule)
 {
     try
     {
         return(operations.UpdateAuthorizationRuleAsync(namespaceName, rule).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #16
0
 /// <summary>
 /// The get authorization rules operation gets the authorization rules
 /// for a namespace.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace to get the authorization rule for.
 /// </param>
 /// <returns>
 /// A response to a request for a list of authorization rules.
 /// </returns>
 public static ServiceBusAuthorizationRulesResponse ListAuthorizationRules(this INamespaceOperations operations, string namespaceName)
 {
     try
     {
         return(operations.ListAuthorizationRulesAsync(namespaceName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #17
0
 /// <summary>
 /// The delete namespace authorization rule operation deletes an
 /// authorization rule for a namespace
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <param name='ruleName'>
 /// The rule name.
 /// </param>
 /// <returns>
 /// A standard storage response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse DeleteAuthorizationRule(this INamespaceOperations operations, string namespaceName, string ruleName)
 {
     try
     {
         return(operations.DeleteAuthorizationRuleAsync(namespaceName, ruleName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #18
0
 /// <summary>
 /// Checks the availability of the given service namespace across all
 /// Windows Azure subscriptions. This is useful because the domain
 /// name is created based on the service namespace name.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj870968.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <returns>
 /// The response to a query for the availability status of a namespace
 /// name.
 /// </returns>
 public static CheckNamespaceAvailabilityResponse CheckAvailability(this INamespaceOperations operations, string namespaceName)
 {
     try
     {
         return(operations.CheckAvailabilityAsync(namespaceName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #19
0
 /// <summary>
 /// Lists the available namespaces.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn140232.asp
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <returns>
 /// The response to the request for a listing of namespaces.
 /// </returns>
 public static ServiceBusNamespacesResponse List(this INamespaceOperations operations)
 {
     try
     {
         return(operations.ListAsync().Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #20
0
 /// <summary>
 /// The namespace description is an XML AtomPub document that defines
 /// the desired semantics for a service namespace. The namespace
 /// description contains the following properties.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <returns>
 /// A response to a request for a list of namespaces.
 /// </returns>
 public static ServiceBusNamespaceDescriptionResponse GetNamespaceDescription(this INamespaceOperations operations, string namespaceName)
 {
     try
     {
         return(operations.GetNamespaceDescriptionAsync(namespaceName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #21
0
 /// <summary>
 /// Checks the availability of the given service namespace across all
 /// Windows Azure subscriptions. This is useful because the domain
 /// name is created based on the service namespace name.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj870968.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <returns>
 /// The response to a query for the availability status of a namespace
 /// name.
 /// </returns>
 public static Task <CheckNamespaceAvailabilityResponse> CheckAvailabilityAsync(this INamespaceOperations operations, string namespaceName)
 {
     return(operations.CheckAvailabilityAsync(namespaceName, CancellationToken.None));
 }
コード例 #22
0
 /// <summary>
 /// The update authorization rule operation updates an authorization
 /// rule for a namespace.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <param name='rule'>
 /// Updated access authorization rule.
 /// </param>
 /// <returns>
 /// A response to a request for a particular authorization rule.
 /// </returns>
 public static Task <ServiceBusAuthorizationRuleResponse> UpdateAuthorizationRuleAsync(this INamespaceOperations operations, string namespaceName, ServiceBusSharedAccessAuthorizationRule rule)
 {
     return(operations.UpdateAuthorizationRuleAsync(namespaceName, rule, CancellationToken.None));
 }
コード例 #23
0
 /// <summary>
 /// The get authorization rules operation gets the authorization rules
 /// for a namespace.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace to get the authorization rule for.
 /// </param>
 /// <returns>
 /// A response to a request for a list of authorization rules.
 /// </returns>
 public static Task <ServiceBusAuthorizationRulesResponse> ListAuthorizationRulesAsync(this INamespaceOperations operations, string namespaceName)
 {
     return(operations.ListAuthorizationRulesAsync(namespaceName, CancellationToken.None));
 }
コード例 #24
0
 /// <summary>
 /// Lists the available namespaces.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn140232.asp
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <returns>
 /// The response to the request for a listing of namespaces.
 /// </returns>
 public static Task <ServiceBusNamespacesResponse> ListAsync(this INamespaceOperations operations)
 {
     return(operations.ListAsync(CancellationToken.None));
 }
コード例 #25
0
 /// <summary>
 /// The namespace description is an XML AtomPub document that defines
 /// the desired semantics for a service namespace. The namespace
 /// description contains the following properties.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <returns>
 /// A response to a request for a list of namespaces.
 /// </returns>
 public static Task <ServiceBusNamespaceDescriptionResponse> GetNamespaceDescriptionAsync(this INamespaceOperations operations, string namespaceName)
 {
     return(operations.GetNamespaceDescriptionAsync(namespaceName, CancellationToken.None));
 }
コード例 #26
0
 /// <summary>
 /// The get authorization rule operation gets an authorization rule for
 /// a namespace by name.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace to get the authorization rule for.
 /// </param>
 /// <param name='entityName'>
 /// The entity name to get the authorization rule for.
 /// </param>
 /// <returns>
 /// A response to a request for a particular authorization rule.
 /// </returns>
 public static Task <ServiceBusAuthorizationRuleResponse> GetAuthorizationRuleAsync(this INamespaceOperations operations, string namespaceName, string entityName)
 {
     return(operations.GetAuthorizationRuleAsync(namespaceName, entityName, CancellationToken.None));
 }
コード例 #27
0
 /// <summary>
 /// The delete namespace authorization rule operation deletes an
 /// authorization rule for a namespace
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <param name='ruleName'>
 /// The rule name.
 /// </param>
 /// <returns>
 /// A standard storage response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> DeleteAuthorizationRuleAsync(this INamespaceOperations operations, string namespaceName, string ruleName)
 {
     return(operations.DeleteAuthorizationRuleAsync(namespaceName, ruleName, CancellationToken.None));
 }
コード例 #28
0
 /// <summary>
 /// Creates a new service namespace. Once created, this namespace's
 /// resource manifest is immutable. This operation is idempotent.
 /// (see http://msdn.microsoft.com/en-us/library/windowsazure/jj856303.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <param name='region'>
 /// The namespace region.
 /// </param>
 /// <returns>
 /// The response to a request for a particular namespace.
 /// </returns>
 public static Task <ServiceBusNamespaceResponse> CreateAsync(this INamespaceOperations operations, string namespaceName, string region)
 {
     return(operations.CreateAsync(namespaceName, region, CancellationToken.None));
 }
 /// <summary>
 /// Deletes an existing namespace. This operation also removes all
 /// associated notificationHubs under the namespace.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj856296.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.NotificationHubs.INamespaceOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <returns>
 /// The response of the CreateOrUpdate Api Management service long
 /// running operation.
 /// </returns>
 public static Task <NamespaceLongRunningResponse> BeginDeleteAsync(this INamespaceOperations operations, string resourceGroupName, string namespaceName)
 {
     return(operations.BeginDeleteAsync(resourceGroupName, namespaceName, CancellationToken.None));
 }
コード例 #30
0
 /// <summary>
 /// Creates a new service namespace. Once created, this namespace's
 /// resource manifest is immutable. This operation is idempotent.
 /// (see http://msdn.microsoft.com/en-us/library/windowsazure/jj856303.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <param name='namespaceEntity'>
 /// Required. The service bus namespace.
 /// </param>
 /// <returns>
 /// The response to a request for a particular namespace.
 /// </returns>
 public static Task <ServiceBusNamespaceResponse> CreateNamespaceAsync(this INamespaceOperations operations, string namespaceName, ServiceBusNamespaceCreateParameters namespaceEntity)
 {
     return(operations.CreateNamespaceAsync(namespaceName, namespaceEntity, CancellationToken.None));
 }