/// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// Sets the api version to use.
 /// </param>
 /// <param name='tenant'>
 /// Sets the tenant to use.
 /// </param>
 /// <param name='nextLink'>
 /// Next link for list operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Microsoft.Rest.Azure.IPage <Product> > NextFragmentAsync(this IPagingOperations operations, string apiVersion, string tenant, string nextLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.NextFragmentWithHttpMessagesAsync(apiVersion, tenant, nextLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// A paging operation that includes a nextLink that has 10 pages
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='pagingGetMultiplePagesWithOffsetOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='clientRequestId'>
 /// </param>
 public static IPage <Product> GetMultiplePagesWithOffset(this IPagingOperations operations, PagingGetMultiplePagesWithOffsetOptionsInner pagingGetMultiplePagesWithOffsetOptions, string clientRequestId = default(string))
 {
     return(operations.GetMultiplePagesWithOffsetAsync(pagingGetMultiplePagesWithOffsetOptions, clientRequestId).GetAwaiter().GetResult());
 }
Пример #3
0
 /// <summary>
 /// A paging operation that receives a 400 on the second call
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <Product> GetMultiplePagesFailure(this IPagingOperations operations)
 {
     return(operations.GetMultiplePagesFailureAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that includes a nextLink that has 10 pages
 /// </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='clientRequestId'>
 /// </param>
 /// <param name='pagingGetMultiplePagesWithOffsetNextOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Product> > GetMultiplePagesWithOffsetNextAsync(this IPagingOperations operations, string nextPageLink, string clientRequestId = default(string), PagingGetMultiplePagesWithOffsetNextOptions pagingGetMultiplePagesWithOffsetNextOptions = default(PagingGetMultiplePagesWithOffsetNextOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetMultiplePagesWithOffsetNextWithHttpMessagesAsync(nextPageLink, clientRequestId, pagingGetMultiplePagesWithOffsetNextOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// A paging operation that receives an invalid nextLink
 /// </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 <Product> > GetMultiplePagesFailureUriNextAsync(this IPagingOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetMultiplePagesFailureUriNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment with
 /// parameters grouped
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='customParameterGroup'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Product> > GetMultiplePagesFragmentWithGroupingNextLinkAsync(this IPagingOperations operations, CustomParameterGroup customParameterGroup, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetMultiplePagesFragmentWithGroupingNextLinkWithHttpMessagesAsync(customParameterGroup, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextLink'>
 /// Next link for list operation.
 /// </param>
 /// <param name='customParameterGroup'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <Product> NextFragmentWithGrouping(this IPagingOperations operations, string nextLink, CustomParameterGroup customParameterGroup)
 {
     return(Task.Factory.StartNew(s => ((IPagingOperations)s).NextFragmentWithGroupingAsync(nextLink, customParameterGroup), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that includes a nextLink in odata format that has 10
 /// pages
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='clientRequestId'>
 /// </param>
 /// <param name='pagingGetOdataMultiplePagesOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static Microsoft.Rest.Azure.IPage <Product> GetOdataMultiplePages(this IPagingOperations operations, string clientRequestId = default(string), PagingGetOdataMultiplePagesOptionsInner pagingGetOdataMultiplePagesOptions = default(PagingGetOdataMultiplePagesOptionsInner))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPagingOperations)s).GetOdataMultiplePagesAsync(clientRequestId, pagingGetOdataMultiplePagesOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Пример #9
0
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// Sets the api version to use.
 /// </param>
 /// <param name='tenant'>
 /// Sets the tenant to use.
 /// </param>
 public static IPage <Product> GetMultiplePagesFragmentNextLink(this IPagingOperations operations, string apiVersion, string tenant)
 {
     return(operations.GetMultiplePagesFragmentNextLinkAsync(apiVersion, tenant).GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that receives a 400 on the second call
 /// </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 <Microsoft.Rest.Azure.IPage <Product> > GetMultiplePagesFailureNextAsync(this IPagingOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetMultiplePagesFailureNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// A paging operation that receives an invalid nextLink
 /// </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 Microsoft.Rest.Azure.IPage <Product> GetMultiplePagesFailureUriNext(this IPagingOperations operations, string nextPageLink)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPagingOperations)s).GetMultiplePagesFailureUriNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that includes a nextLink that has 10 pages
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='clientRequestId'>
 /// </param>
 /// <param name='pagingGetMultiplePagesOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Microsoft.Rest.Azure.IPage <Product> > GetMultiplePagesAsync(this IPagingOperations operations, string clientRequestId = default(string), PagingGetMultiplePagesOptionsInner pagingGetMultiplePagesOptions = default(PagingGetMultiplePagesOptionsInner), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetMultiplePagesWithHttpMessagesAsync(clientRequestId, pagingGetMultiplePagesOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextLink'>
 /// Next link for list operation.
 /// </param>
 /// <param name='customParameterGroup'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Microsoft.Rest.Azure.IPage <Product> > NextFragmentWithGroupingAsync(this IPagingOperations operations, string nextLink, CustomParameterGroupInner customParameterGroup, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.NextFragmentWithGroupingWithHttpMessagesAsync(nextLink, customParameterGroup, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextLink'>
 /// Next link for list operation.
 /// </param>
 /// <param name='customParameterGroup'>
 /// Additional parameters for the operation
 /// </param>
 public static Microsoft.Rest.Azure.IPage <Product> NextFragmentWithGrouping(this IPagingOperations operations, string nextLink, CustomParameterGroupInner customParameterGroup)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPagingOperations)s).NextFragmentWithGroupingAsync(nextLink, customParameterGroup), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that finishes on the first call without a nextlink
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <Product> GetSinglePages(this IPagingOperations operations)
 {
     return(Task.Factory.StartNew(s => ((IPagingOperations)s).GetSinglePagesAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Пример #16
0
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment with
 /// parameters grouped
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='customParameterGroup'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <Product> GetMultiplePagesFragmentWithGroupingNextLink(this IPagingOperations operations, CustomParameterGroup customParameterGroup)
 {
     return(operations.GetMultiplePagesFragmentWithGroupingNextLinkAsync(customParameterGroup).GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// Sets the api version to use.
 /// </param>
 /// <param name='tenant'>
 /// Sets the tenant to use.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Product> > GetMultiplePagesFragmentNextLinkAsync(this IPagingOperations operations, string apiVersion, string tenant, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetMultiplePagesFragmentNextLinkWithHttpMessagesAsync(apiVersion, tenant, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #18
0
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// Sets the api version to use.
 /// </param>
 /// <param name='tenant'>
 /// Sets the tenant to use.
 /// </param>
 /// <param name='nextLink'>
 /// Next link for list operation.
 /// </param>
 public static IPage <Product> NextFragment(this IPagingOperations operations, string apiVersion, string tenant, string nextLink)
 {
     return(operations.NextFragmentAsync(apiVersion, tenant, nextLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// Sets the api version to use.
 /// </param>
 /// <param name='tenant'>
 /// Sets the tenant to use.
 /// </param>
 /// <param name='nextLink'>
 /// Next link for list operation.
 /// </param>
 public static IPage <Product> NextFragment(this IPagingOperations operations, string apiVersion, string tenant, string nextLink)
 {
     return(Task.Factory.StartNew(s => ((IPagingOperations)s).NextFragmentAsync(apiVersion, tenant, nextLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Пример #20
0
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextLink'>
 /// Next link for list operation.
 /// </param>
 /// <param name='customParameterGroup'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <Product> NextFragmentWithGrouping(this IPagingOperations operations, string nextLink, CustomParameterGroup customParameterGroup)
 {
     return(operations.NextFragmentWithGroupingAsync(nextLink, customParameterGroup).GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that includes a nextLink that has 10 pages
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='clientRequestId'>
 /// </param>
 /// <param name='pagingGetMultiplePagesOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <Product> GetMultiplePages(this IPagingOperations operations, string clientRequestId = default(string), PagingGetMultiplePagesOptions pagingGetMultiplePagesOptions = default(PagingGetMultiplePagesOptions))
 {
     return(Task.Factory.StartNew(s => ((IPagingOperations)s).GetMultiplePagesAsync(clientRequestId, pagingGetMultiplePagesOptions), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Пример #22
0
 /// <summary>
 /// A paging operation that includes a nextLink that has 10 pages
 /// </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='clientRequestId'>
 /// </param>
 /// <param name='pagingGetMultiplePagesWithOffsetNextOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <Product> GetMultiplePagesWithOffsetNext(this IPagingOperations operations, string nextPageLink, string clientRequestId = default(string), PagingGetMultiplePagesWithOffsetNextOptions pagingGetMultiplePagesWithOffsetNextOptions = default(PagingGetMultiplePagesWithOffsetNextOptions))
 {
     return(operations.GetMultiplePagesWithOffsetNextAsync(nextPageLink, clientRequestId, pagingGetMultiplePagesWithOffsetNextOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that receives an invalid nextLink
 /// </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 <Product> GetMultiplePagesFailureUriNext(this IPagingOperations operations, string nextPageLink)
 {
     return(Task.Factory.StartNew(s => ((IPagingOperations)s).GetMultiplePagesFailureUriNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Пример #24
0
 /// <summary>
 /// A paging operation that receives an invalid nextLink
 /// </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 <Product> GetMultiplePagesFailureUriNext(this IPagingOperations operations, string nextPageLink)
 {
     return(operations.GetMultiplePagesFailureUriNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Пример #25
0
 /// <summary>
 /// A paging operation that includes a nextLink in odata format that has 10
 /// pages
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='clientRequestId'>
 /// </param>
 /// <param name='pagingGetOdataMultiplePagesOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <Product> GetOdataMultiplePages(this IPagingOperations operations, string clientRequestId = default(string), PagingGetOdataMultiplePagesOptionsInner pagingGetOdataMultiplePagesOptions = default(PagingGetOdataMultiplePagesOptionsInner))
 {
     return(operations.GetOdataMultiplePagesAsync(clientRequestId, pagingGetOdataMultiplePagesOptions).GetAwaiter().GetResult());
 }
Пример #26
0
        /// <summary>
        /// A paging operation that receives a 400 on the first call
        /// </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 <Page <Product> > GetSinglePagesFailureNextAsync(this IPagingOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
        {
            AzureOperationResponse <Page <Product> > result = await operations.GetSinglePagesFailureNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
Пример #27
0
 /// <summary>
 /// A paging operation that includes a nextLink that has 10 pages, of which the
 /// 2nd call fails first with 500. The client should retry and finish all 10
 /// pages eventually.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <Product> GetMultiplePagesRetrySecond(this IPagingOperations operations)
 {
     return(operations.GetMultiplePagesRetrySecondAsync().GetAwaiter().GetResult());
 }
Пример #28
0
        /// <summary>
        /// A paging operation that fails on the first call with 500 and then retries
        /// and then get a response including a nextLink that has 10 pages
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Page <Product> > GetMultiplePagesRetryFirstAsync(this IPagingOperations operations, CancellationToken cancellationToken = default(CancellationToken))
        {
            AzureOperationResponse <Page <Product> > result = await operations.GetMultiplePagesRetryFirstWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
Пример #29
0
 /// <summary>
 /// A paging operation that finishes on the first call without a nextlink
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <Product> GetSinglePages(this IPagingOperations operations)
 {
     return(operations.GetSinglePagesAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// A paging operation that doesn't return a full URL, just a fragment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// Sets the api version to use.
 /// </param>
 /// <param name='tenant'>
 /// Sets the tenant to use.
 /// </param>
 public static Microsoft.Rest.Azure.IPage <Product> GetMultiplePagesFragmentNextLink(this IPagingOperations operations, string apiVersion, string tenant)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPagingOperations)s).GetMultiplePagesFragmentNextLinkAsync(apiVersion, tenant), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }