public void Write(LogMessage message) { _msgQueue.Enqueue(message); TryFlush(); }
public void WriteAndFlush(LogMessage message) { Write(message); Flush(); }