예제 #1
0
        GetAzureMlWebServicesBySubscriptionAsync(
            string nextLink,
            CancellationToken?cancellationToken)
        {
            string skipToken = WebServicesClient.GetSkipTokenFromLink(nextLink);
            var    cancellationTokenParam = cancellationToken ?? CancellationToken.None;

            var paginatedResponse =
                await this.apiClient.WebServices.ListAsync(
                    skipToken,
                    cancellationTokenParam).ConfigureAwait(false);

            return(paginatedResponse.Value);
        }
        GetAzureMlWebServicesBySubscriptionAndGroupAsync(
            string resourceGroupName,
            string nextLink,
            CancellationToken?cancellationToken)
        {
            string skipToken = WebServicesClient.GetSkipTokenFromLink(nextLink);
            var    cancellationTokenParam = cancellationToken ?? CancellationToken.None;
            var    paginatedResponse      = await this.apiClient.WebServices.ListInResourceGroupAsync(
                resourceGroupName,
                skipToken,
                cancellationTokenParam).ConfigureAwait(false);

            return(new ResponseWithContinuation <WebService[]>
            {
                Value = paginatedResponse.Value.ToArray(),
                NextLink = paginatedResponse.NextLink
            });
        }
예제 #3
0
        GetAzureMlWebServicesBySubscriptionAsync(
            string nextLink,
            CancellationToken?cancellationToken)
        {
            string skipToken = WebServicesClient.GetSkipTokenFromLink(nextLink);
            var    cancellationTokenParam = cancellationToken ?? CancellationToken.None;

            var paginatedResponse =
                await this.apiClient.WebServices.ListBySubscriptionIdWithHttpMessagesAsync(
                    skipToken,
                    null,
                    cancellationTokenParam).ConfigureAwait(false);

            return(new ResponseWithContinuation <WebService[]>
            {
                Value = paginatedResponse.Body.ToArray(),
                NextLink = paginatedResponse.Body.NextPageLink
            });
        }