Esempio n. 1
0
File: LogCount.cs Progetto: txdv/psi
 void Event(LogEvent @event)
 {
     int c;
     var key = @event.GetType().ToString();
     count.TryGetValue(key, out c);
     count[key] = c + 1;
 }
Esempio n. 2
0
 protected void OnLogEvent(LogEvent logEvent)
 {
     if (LogEvent != null) {
         LogEvent(logEvent);
     }
 }