Ejemplo n.º 1
0
        /// <summary>
        /// Long running put request, service returns a 500, then a 200 to the initial
        /// request, with an entity that contains ProvisioningState=’Creating’. Poll
        /// the endpoint indicated in the Azure-AsyncOperation header for operation
        /// status
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Product> GetAsyncRelativeRetrySucceededAsync(this ILRORetrysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
        {
            AzureOperationResponse <Product> result = await operations.GetAsyncRelativeRetrySucceededWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }