/// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Monitoring.Alerts.IIncidentOperations. /// </param> /// <returns> /// The List incidents operation response. /// </returns> public static IncidentListResponse ListActiveForSubscription(this IIncidentOperations operations) { try { return(operations.ListActiveForSubscriptionAsync().Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Monitoring.Alerts.IIncidentOperations. /// </param> /// <returns> /// The List incidents operation response. /// </returns> public static Task <IncidentListResponse> ListActiveForSubscriptionAsync(this IIncidentOperations operations) { return(operations.ListActiveForSubscriptionAsync(CancellationToken.None)); }