public void LogMessage(string message) { using (var log = new MessageLog(this, message, _output)) { _messages.Add(log); } }
public void LogMessage(string message) { using (MessageLog messageLog = new MessageLog(this, message, this._output)) { this._messages.Add(messageLog); } }