wasSharp – Diff between revs 10 and 20

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 10 Rev 20
Line 27... Line 27...
27 public TimedThrottle(uint events, uint seconds) 27 public TimedThrottle(uint events, uint seconds)
28 { 28 {
29 EventsAllowed = events; 29 EventsAllowed = events;
30 if (timer == null) 30 if (timer == null)
31 { 31 {
32 timer = new Timer(o => 32 timer = new Timer(() =>
33 { 33 {
34 lock (LockObject) 34 lock (LockObject)
35 { 35 {
36 TriggeredEvents = 0; 36 TriggeredEvents = 0;
37 } 37 }
38 }, null, (int) seconds, (int) seconds); 38 }, seconds, seconds);
39 } 39 }
40 } 40 }
Line 41... Line 41...
41   41  
42 public bool IsSafe 42 public bool IsSafe