예제 #1
0
        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);
        }
예제 #2
0
 private void StatusHandler(StatusMessage message)
 {
     m_Logger.Debug("StatusHandler: Text = {0}".Inject(message.Text));
 }