/// <summary> /// Initializes a new instance of the <see cref="RateLimitingQueue{TItem}" /> class. /// </summary> /// <param name="rateLimiter">The rate limiter.</param> public RateLimitingQueue(IRateLimiter <TItem> rateLimiter, IDelayingQueue <TItem> @base = default) : base(@base ?? new DelayingQueue <TItem>()) { _rateLimiter = rateLimiter; }
/// <summary> /// Initializes a new instance of the <see cref="DelayingQueueBase{TItem}" /> class. /// </summary> /// <param name="base">The base.</param> protected DelayingQueueBase(IDelayingQueue <TItem> @base) : base(@base) { _base = @base; }