Example #1
0
 protected void MessageHandler(Message message)
 {
     switch (message.MessageType)
     {
         case MessageType.Info: Console.WriteLine(message.Contents);
             break;
         case MessageType.Warning: WriteWarning(message.Contents);
             break;
     }
 }
Example #2
0
        private void MessageHandler(Message message)
        {
            switch (message.MessageType)
            {

                case MessageType.Info:
                    Log.LogMessage(MessageImportance.Normal, message.Contents);
                    break;
                case MessageType.Warning:
                    Log.LogWarning(message.Contents);

                    break;
            }
        }