Exemplo n.º 1
0
 public bool CacheMessage(SpeckleGSAInterfaces.MessageIntent intent, SpeckleGSAInterfaces.MessageLevel level, params string[] messagePortions)
 {
     lock (syncLock)
     {
         MessageCache.Add(new MessageEventArgs(intent, level, messagePortions));
     }
     return(true);
 }
Exemplo n.º 2
0
        public bool Message(SpeckleGSAInterfaces.MessageIntent intent, SpeckleGSAInterfaces.MessageLevel level, Exception ex, params string[] messagePortions)
        {
            return(CacheMessage(intent, level, ex, messagePortions));

            /*
             * if (intent == SpeckleGSAInterfaces.MessageIntent.TechnicalLog)
             * {
             * //Currently cache these so that the app has the provision to add more context before it's logged
             * CacheMessage(intent, level, ex, messagePortions);
             * }
             * else
             * {
             * MessageAdded?.Invoke(null, new MessageEventArgs(intent, level, ex, messagePortions));
             * }
             * return true;
             */
        }
Exemplo n.º 3
0
        public bool Message(SpeckleGSAInterfaces.MessageIntent intent, SpeckleGSAInterfaces.MessageLevel level, params string[] messagePortions)
        {
            return(CacheMessage(intent, level, messagePortions));

            /*
             * if ((intent == SpeckleGSAInterfaces.MessageIntent.TechnicalLog)
             * //TO DO: review this assumption that messages with 2 portions are to be consolidated
             || (intent == SpeckleGSAInterfaces.MessageIntent.Display && messagePortions.Count() == 2))
             ||{
             ||//Currently cache these so that the app has the provision to add more context before it's logged
             ||CacheMessage(intent, level, messagePortions);
             ||}
             ||else
             ||{
             ||MessageAdded?.Invoke(null, new MessageEventArgs(intent, level, messagePortions));
             ||}
             ||return true;
             */
        }