void Event(LogEvent @event) { int c; var key = @event.GetType().ToString(); count.TryGetValue(key, out c); count[key] = c + 1; }
protected void OnLogEvent(LogEvent logEvent) { if (LogEvent != null) { LogEvent(logEvent); } }