/// <summary> /// List the triggered web jobs. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations. /// </param> /// <param name='parameters'> /// Additional parameters. /// </param> /// <returns> /// The list of jobs operation response. /// </returns> public static WebJobListResponse ListTriggered(this IWebJobOperations operations, WebJobListParameters parameters) { try { return(operations.ListTriggeredAsync(parameters).Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// List the triggered web jobs. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations. /// </param> /// <param name='parameters'> /// Additional parameters. /// </param> /// <returns> /// The list of jobs operation response. /// </returns> public static Task <WebJobListResponse> ListTriggeredAsync(this IWebJobOperations operations, WebJobListParameters parameters) { return(operations.ListTriggeredAsync(parameters, CancellationToken.None)); }