예제 #1
0
 internal async Task RaiseRateLimitTriggered(string id, Bucket bucket, int millis)
 {
     await RateLimitTriggered.Invoke(id, bucket, millis).ConfigureAwait(false);
 }
예제 #2
0
        private RequestQueueBucket CreateBucket(Bucket def)
        {
            var parent = def.Parent != null?GetGlobalBucket(def.Parent.Value) : null;

            return(new RequestQueueBucket(this, def, parent));
        }