Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 public EventLogThrottle(AppEventLog eventLog)
 {
     this.eventLog  = eventLog;
     this.duration  = EventLogThrottle.DefaultThrottleTime;
     this.lastWrite = DateTime.MinValue;
 }