Esempio n. 1
0
        public void AddDryrunMessage(string message)
        {
            if (m_parent != null)
            {
                m_parent.AddDryrunMessage(message);
            }
            else
            {
                lock (Logging.Log.Lock)
                {
                    if (m_is_reporting)
                    {
                        return;
                    }

                    try
                    {
                        m_is_reporting = true;
                        Logging.Log.WriteMessage(message, Duplicati.Library.Logging.LogMessageType.Information, null);
                        if (MessageSink != null)
                        {
                            MessageSink.DryrunEvent(message);
                        }
                    }
                    finally
                    {
                        m_is_reporting = false;
                    }
                }
            }
        }
Esempio n. 2
0
 public void AddDryrunMessage(string message)
 {
     if (m_parent != null)
     {
         m_parent.AddDryrunMessage(message);
     }
     else
     {
         Logging.Log.WriteMessage(message, Duplicati.Library.Logging.LogMessageType.Information);
         if (MessageSink != null)
         {
             MessageSink.DryrunEvent(message);
         }
     }
 }