예제 #1
0
 /// <summary>
 /// Unregister the Scheduler resource provider with your subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Scheduler.ISchedulerManagementClient.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse UnregisterResourceProvider(this ISchedulerManagementClient operations)
 {
     try
     {
         return(operations.UnregisterResourceProviderAsync().Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Unregister the Scheduler resource provider with your subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Scheduler.ISchedulerManagementClient.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> UnregisterResourceProviderAsync(this ISchedulerManagementClient operations)
 {
     return(operations.UnregisterResourceProviderAsync(CancellationToken.None));
 }