private async Task <bool> TryWaitInQueueAsync(CancellationToken cancellationToken) { return((_enqueuer != null) && (await _enqueuer.EnqueueAsync(cancellationToken))); }
/// <summary> /// try wait in queue as an asynchronous operation. /// </summary> /// <param name="requestAbortedCancellationToken">The cancellation token that can be used by other objects or threads to receive notice of cancellation.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> private async Task <bool> TryWaitInQueueAsync(CancellationToken requestAbortedCancellationToken) { return((_enqueuer is not null) && (await _enqueuer.EnqueueAsync(requestAbortedCancellationToken).ConfigureAwait(false))); }