m.Utils.LeakyBucket.LeakyBucket C# (CSharp) Method

LeakyBucket() public method

public LeakyBucket ( int capacity, int leaksPerSecond ) : System
capacity int
leaksPerSecond int
return System
        public LeakyBucket(int capacity, int leaksPerSecond)
        {
            Capacity = capacity;
            LeakRate = leaksPerSecond;

            currentSize = 0;
            lastLeakOn = DateTime.UtcNow;
        }