/// <summary> /// Gets a list of workflow runs. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <WorkflowRun> > ListAsync(this IWorkflowRunsOperations operations, string resourceGroupName, string workflowName, ODataQuery <WorkflowRunFilter> odataQuery = default(ODataQuery <WorkflowRunFilter>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workflowName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of workflow runs. /// </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='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <WorkflowRun> > ListNextAsync(this IWorkflowRunsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a workflow run. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='runName'> /// The workflow run name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <WorkflowRun> GetAsync(this IWorkflowRunsOperations operations, string resourceGroupName, string workflowName, string runName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workflowName, runName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a workflow run. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='runName'> /// The workflow run name. /// </param> public static WorkflowRun Get(this IWorkflowRunsOperations operations, string resourceGroupName, string workflowName, string runName) { return(Task.Factory.StartNew(s => ((IWorkflowRunsOperations)s).GetAsync(resourceGroupName, workflowName, runName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workflow runs. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <WorkflowRun> List(this IWorkflowRunsOperations operations, string resourceGroupName, string workflowName, ODataQuery <WorkflowRunFilter> odataQuery = default(ODataQuery <WorkflowRunFilter>)) { return(Task.Factory.StartNew(s => ((IWorkflowRunsOperations)s).ListAsync(resourceGroupName, workflowName, odataQuery), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workflow runs. /// </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> public static IPage <WorkflowRun> ListNext(this IWorkflowRunsOperations operations, string nextPageLink) { return(Task.Factory.StartNew(s => ((IWorkflowRunsOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Cancels a workflow run. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='runName'> /// The workflow run name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task CancelAsync(this IWorkflowRunsOperations operations, string resourceGroupName, string workflowName, string runName, CancellationToken cancellationToken = default(CancellationToken)) { await operations.CancelWithHttpMessagesAsync(resourceGroupName, workflowName, runName, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Gets a workflow run. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='runName'> /// The workflow run name. /// </param> public static WorkflowRun Get(this IWorkflowRunsOperations operations, string resourceGroupName, string workflowName, string runName) { return(operations.GetAsync(resourceGroupName, workflowName, runName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workflow runs. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <WorkflowRun> List(this IWorkflowRunsOperations operations, string resourceGroupName, string workflowName, ODataQuery <WorkflowRunFilter> odataQuery = default(ODataQuery <WorkflowRunFilter>)) { return(operations.ListAsync(resourceGroupName, workflowName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workflow runs. /// </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> public static IPage <WorkflowRun> ListNext(this IWorkflowRunsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Cancels a workflow run. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='runName'> /// The workflow run name. /// </param> public static void Cancel(this IWorkflowRunsOperations operations, string resourceGroupName, string workflowName, string runName) { operations.CancelAsync(resourceGroupName, workflowName, runName).GetAwaiter().GetResult(); }