/// <summary> /// Lists the settings. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.WebSitesExtensions.ISettingsOperations. /// </param> /// <returns> /// The list settings operation response. /// </returns> public static SettingsListResponse List(this ISettingsOperations operations) { try { return(operations.ListAsync().Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Settings about different configurations in security center /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <Setting> List(this ISettingsOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// Lists the settings. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.WebSitesExtensions.ISettingsOperations. /// </param> /// <returns> /// The list settings operation response. /// </returns> public static Task <SettingsListResponse> ListAsync(this ISettingsOperations operations) { return(operations.ListAsync(CancellationToken.None)); }