/// <summary> /// Gets a list of properties for the resource provider, including /// supported regions and plans. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Scheduler.ISchedulerManagementClient. /// </param> /// <returns> /// The Resource Provider Get Properties operation response. /// </returns> public static ResourceProviderGetPropertiesResponse GetResourceProviderProperties(this ISchedulerManagementClient operations) { try { return(operations.GetResourceProviderPropertiesAsync().Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Gets a list of properties for the resource provider, including /// supported regions and plans. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Scheduler.ISchedulerManagementClient. /// </param> /// <returns> /// The Resource Provider Get Properties operation response. /// </returns> public static Task <ResourceProviderGetPropertiesResponse> GetResourceProviderPropertiesAsync(this ISchedulerManagementClient operations) { return(operations.GetResourceProviderPropertiesAsync(CancellationToken.None)); }