Exemplo n.º 1
0
        private void OnLineReadedFired(object sender, LineReadedEventArgs lineReadedEventArgs)
        {
            EventHandler <LineReadedEventArgs> handler = OnEventFromReader;

            if (handler != null)
            {
                handler(this, lineReadedEventArgs);
            }
        }
        private void EvaluateEvents(object sender, LineReadedEventArgs e)
        {
            var handler = EventFromLog;

            if (handler == null)
            {
                return;
            }
            foreach (var logEvent in _eventEvaluator.Evaluate(e.LogFileName, e.Line))
            {
                handler(this, new LogEventArgs(logEvent));
            }
        }