Пример #1
0
 public SyslogMessage Parse(string rawmessage, IPAddress address)
 {
     var message = GetMessage(rawmessage);
     var severity = GetSeverity(rawmessage);
     var datetime = GetDateTime(rawmessage);
     var facility = GetFacility(rawmessage);
     var sm = new SyslogMessage(message, severity, datetime, address?.ToString() ?? string.Empty, facility);
     return sm;
 }
Пример #2
0
 public void Add(SyslogMessage message)
 {
     _queue.Enqueue(message);
     MessageAdded?.Invoke(this, EventArgs.Empty);
 }