Пример #1
0
 /// <summary>
 /// This method gets all the jobs of a given job definition.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataServiceName'>
 /// The name of the data service of the job definition.
 /// </param>
 /// <param name='jobDefinitionName'>
 /// The name of the job definition for which jobs are needed.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The Resource Group Name
 /// </param>
 /// <param name='dataManagerName'>
 /// The name of the DataManager Resource within the specified resource group.
 /// DataManager names must be between 3 and 24 characters in length and use any
 /// alphanumeric and underscore only
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Job> > ListByJobDefinitionAsync(this IJobsOperations operations, string dataServiceName, string jobDefinitionName, string resourceGroupName, string dataManagerName, ODataQuery <JobFilter> odataQuery = default(ODataQuery <JobFilter>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByJobDefinitionWithHttpMessagesAsync(dataServiceName, jobDefinitionName, resourceGroupName, dataManagerName, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }