private void SendMessagWhenRequired(string text, ILogger logger) { if ( string.IsNullOrEmpty(text) ) { return; } logger.Info(text); var message = new StatusMessage { Text = text }; m_Bus.PublishAsync(message); }
private void StatusHandler(StatusMessage message) { m_Logger.Debug("StatusHandler: Text = {0}".Inject(message.Text)); }