Esempio n. 1
0
        private void HandleLogEvent(string serializedEvent)
        {
            var eventReader = new LogEventReader(new StringReader(serializedEvent));

            while (eventReader.TryRead(out var logEvent))
            {
                LogEventArrived?.Invoke(this, new LogEventArrivedEventArgs(logEvent));
            }
        }
 private void HandleEvent(LogEvent logEvent) =>
 LogEventArrived?.Invoke(this, new LogEventArrivedEventArgs(logEvent));