public PswsTimer(ElapsedEventHandler elapsedEventHandler, int timeout, bool continuous, bool startAtCreation) { this.timeout = new BoundedInteger(timeout, 1, 0x7fffffff); this.elapsedEventHandler = elapsedEventHandler; this.continuous = continuous; this.timer = PswsTimer.CreateTimer(elapsedEventHandler, this.timeout.Value, this.continuous, startAtCreation); this.disposed = false; }
public PswsTimer(ElapsedEventHandler elapsedEventHandler, int timeout, bool continuous, bool startAtCreation) { this.timeout = new BoundedInteger(timeout, 1, 0x7fffffff); this.elapsedEventHandler = elapsedEventHandler; this.continuous = continuous; this.timer = PswsTimer.CreateTimer(elapsedEventHandler, this.timeout.Value, this.continuous, startAtCreation); this.disposed = false; }
public UserQuota(int maxConcurrentRequests, int maxRequestsPerTimeSlot, int timeSlotSize) { this.maxConcurrentRequests = new BoundedInteger(maxConcurrentRequests, 1, 0x7fffffff); this.timeSlotSize = new BoundedInteger(timeSlotSize, 1, 0x7fffffff); this.maxRequestsPerTimeSlot = new BoundedInteger(maxRequestsPerTimeSlot, 1, 0x7fffffff); }
public PerTimeSlotWindow(DateTime baseTime, int timeSlot) { this.TimeSlot = new BoundedInteger(timeSlot, 1, 0x7fffffff); this.Reset(baseTime, timeSlot); }
public BoundedResetList(int listSize) { this.listSize = new BoundedInteger(listSize, 1, 0x7fffffff); this.list = new List <TItem>(); }
public PerTimeSlotWindow(DateTime baseTime, int timeSlot) { this.TimeSlot = new BoundedInteger(timeSlot, 1, 0x7fffffff); this.Reset(baseTime, timeSlot); }