/// <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 next page of pipeline runs with the link to the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineRunOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next pipeline runs page.
 /// </param>
 /// <returns>
 /// The GetRuns pipeline operation response.
 /// </returns>
 public static PipelineRunListResponse ListNext(this IPipelineRunOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPipelineRunOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the DataPipelineManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public DataPipelineManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._dataFactories     = new DataFactoryOperations(this);
     this._dataSlices        = new DataSliceOperations(this);
     this._dataSliceRuns     = new DataSliceRunOperations(this);
     this._gateways          = new GatewayOperations(this);
     this._hubs              = new HubOperations(this);
     this._linkedServices    = new LinkedServiceOperations(this);
     this._pipelines         = new PipelineOperations(this);
     this._pipelineRuns      = new PipelineRunOperations(this);
     this._tables            = new TableOperations(this);
     this.HttpClient.Timeout = TimeSpan.FromSeconds(60);
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the DataPipelineManagementClient
 /// class.
 /// </summary>
 private DataPipelineManagementClient()
     : base()
 {
     this._dataFactories         = new DataFactoryOperations(this);
     this._dataSlices            = new DataSliceOperations(this);
     this._dataSliceRuns         = new DataSliceRunOperations(this);
     this._encryptionCertificate = new EncryptionCertificateOperations(this);
     this._gateways          = new GatewayOperations(this);
     this._hubs              = new HubOperations(this);
     this._linkedServices    = new LinkedServiceOperations(this);
     this._pipelines         = new PipelineOperations(this);
     this._pipelineRuns      = new PipelineRunOperations(this);
     this._tables            = new TableOperations(this);
     this.HttpClient.Timeout = TimeSpan.FromSeconds(60);
 }
 /// <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));
 }
 /// <summary>
 /// Gets the next page of pipeline runs with the link to the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineRunOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next pipeline runs page.
 /// </param>
 /// <returns>
 /// The GetRuns pipeline operation response.
 /// </returns>
 public static Task <PipelineRunListResponse> ListNextAsync(this IPipelineRunOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }