/// <summary>
 /// Gets the first page of runs of an activity in the pipeline over a
 /// time range with the link to the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineRunOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='pipelineName'>
 /// Required. A unique pipeline instance name
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters required to get the runs of a pipeline.
 /// </param>
 /// <returns>
 /// The GetRuns pipeline operation response.
 /// </returns>
 public static PipelineRunListResponse List(this IPipelineRunOperations operations, string resourceGroupName, string dataFactoryName, string pipelineName, PipelineRunListParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IPipelineRunOperations)s).ListAsync(resourceGroupName, dataFactoryName, pipelineName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gets the first page of runs of an activity in the pipeline over a
 /// time range with the link to the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineRunOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='pipelineName'>
 /// Required. A unique pipeline instance name
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters required to get the runs of a pipeline.
 /// </param>
 /// <returns>
 /// The GetRuns pipeline operation response.
 /// </returns>
 public static Task<PipelineRunListResponse> ListAsync(this IPipelineRunOperations operations, string resourceGroupName, string dataFactoryName, string pipelineName, PipelineRunListParameters parameters)
 {
     return operations.ListAsync(resourceGroupName, dataFactoryName, pipelineName, parameters, CancellationToken.None);
 }