Exemplo n.º 1
0
 /// <summary>
 /// Lists report records by Time.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='interval'>
 /// By time interval. Interval must be multiple of 15 minutes and may not be
 /// zero. The value should be in ISO  8601 format
 /// (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
 /// convert TimeSpan to a valid interval string: XmlConvert.ToString(new
 /// TimeSpan(hours, minutes, seconds)).
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ReportRecordContract> > ListByTimeAsync(this IReportsOperations operations, ODataQuery <ReportRecordContract> odataQuery, string resourceGroupName, string serviceName, System.TimeSpan interval, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByTimeWithHttpMessagesAsync(odataQuery, resourceGroupName, serviceName, interval, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }