/// <summary> /// Lists all of the Tasks that are associated with the specified Job. /// </summary> /// <remarks> /// For multi-instance Tasks, information such as affinityId, executionInfo and /// nodeInfo refer to the primary Task. Use the list subtasks API to retrieve /// information about subtasks. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='taskListNextOptions'> /// Additional parameters for the operation /// </param> public static IPage <CloudTask> ListNext(this ITaskOperations operations, string nextPageLink, TaskListNextOptions taskListNextOptions = default(TaskListNextOptions)) { return(operations.ListNextAsync(nextPageLink, taskListNextOptions).GetAwaiter().GetResult()); }
/// <summary> /// Lists all of the Tasks that are associated with the specified Job. /// </summary> /// <remarks> /// For multi-instance Tasks, information such as affinityId, executionInfo and /// nodeInfo refer to the primary Task. Use the list subtasks API to retrieve /// information about subtasks. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='taskListNextOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <CloudTask> > ListNextAsync(this ITaskOperations operations, string nextPageLink, TaskListNextOptions taskListNextOptions = default(TaskListNextOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, taskListNextOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all of the tasks that are associated with the specified job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='taskListNextOptions'> /// Additional parameters for the operation /// </param> public static Microsoft.Rest.Azure.IPage <CloudTask> ListNext(this ITaskOperations operations, string nextPageLink, TaskListNextOptions taskListNextOptions = default(TaskListNextOptions)) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ITaskOperations)s).ListNextAsync(nextPageLink, taskListNextOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }