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

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

            return(_operationHelper.UpdateStatusAsync(cancellationToken));
        }
コード例 #3
0
 public override ValueTask <Response> UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
コード例 #4
0
 /// <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);