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; }
public void Add(SyslogMessage message) { _queue.Enqueue(message); MessageAdded?.Invoke(this, EventArgs.Empty); }