/// <summary> /// Retrieve a list of jobs of the runbook identified by runbookId. /// (see /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXXXX.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IJobOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Required. The parameters supplied to the list job by runbook id /// operation. /// </param> /// <returns> /// The response model for the list job operation. /// </returns> public static Task<JobListResponse> ListByRunbookIdFilteredByStartTimeEndTimeAsync(this IJobOperations operations, string automationAccount, JobListByRunbookIdParameters parameters) { return operations.ListByRunbookIdFilteredByStartTimeEndTimeAsync(automationAccount, parameters, CancellationToken.None); }
/// <summary> /// Retrieve a list of jobs of the runbook identified by runbookId. /// (see /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXXXX.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IJobOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Required. The parameters supplied to the list job by runbook id /// operation. /// </param> /// <returns> /// The response model for the list job operation. /// </returns> public static JobListResponse ListByRunbookIdFilteredByStartTimeEndTime(this IJobOperations operations, string automationAccount, JobListByRunbookIdParameters parameters) { return Task.Factory.StartNew((object s) => { return ((IJobOperations)s).ListByRunbookIdFilteredByStartTimeEndTimeAsync(automationAccount, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }