/// <inheritdoc/>
        public override async ValueTask <Response> UpdateStatusAsync(CancellationToken cancellationToken = default)
        {
            if (!HasCompleted)
            {
                return(await _operationInternal.UpdateStatusAsync(cancellationToken).ConfigureAwait(false));
            }

            return(GetRawResponse());
        }
Exemple #2
0
        public override ValueTask <Response> UpdateStatusAsync(CancellationToken cancellationToken = default)
        {
            if (_exceptionOnWait)
            {
                throw new ArgumentException("FakeArg");
            }

            return(_operationHelper.UpdateStatusAsync(cancellationToken));
        }
Exemple #3
0
 public override ValueTask <Response> UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
 /// <summary>
 /// Calls the server to get updated status of the long-running operation.
 /// </summary>
 /// <param name="cancellationToken">A <see cref="CancellationToken"/> used for the service call.</param>
 /// <returns>The HTTP response received from the server.</returns>
 /// <remarks>
 /// This operation will update the value returned from GetRawResponse and might update HasCompleted, HasValue, and Value.
 /// </remarks>
 public override async ValueTask <Response> UpdateStatusAsync(CancellationToken cancellationToken = default) =>
 await _operationInternal.UpdateStatusAsync(cancellationToken).ConfigureAwait(false);