m.Utils.LeakyBucket.LeakyBucket C# (CSharp) Méthode

LeakyBucket() public méthode

public LeakyBucket ( int capacity, int leaksPerSecond ) : System
capacity int
leaksPerSecond int
Résultat System
        public LeakyBucket(int capacity, int leaksPerSecond)
        {
            Capacity = capacity;
            LeakRate = leaksPerSecond;

            currentSize = 0;
            lastLeakOn = DateTime.UtcNow;
        }