/// <summary> /// /// </summary> /// <param name="duration">Value in minutes. One event per duration will be allowed.</param> public EventLogThrottle(AppEventLog eventLog, int duration) { this.eventLog = eventLog; this.duration = duration; this.lastWrite = DateTime.MinValue; }
public EventLogThrottle(AppEventLog eventLog) { this.eventLog = eventLog; this.duration = EventLogThrottle.DefaultThrottleTime; this.lastWrite = DateTime.MinValue; }