Example #1
0
 //------------------------------------------------------------------------------------------------------
 #endregion
 //------------------------------------------------------------------------------------------------------
 #region Methods
 //------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Возвращает объект журнала приложений
 /// </summary>
 /// <returns></returns>
 public static XmlLog GetInstance()
 {
     if (_XmlLog == null)
     {
         lock (typeof(XmlLog))
         {
             if (_XmlLog == null)
             {
                 _XmlLog = new XmlLog();
             }
         }
     }
     return(_XmlLog);
 }
Example #2
0
 //------------------------------------------------------------------------------------------------------
 #endregion
 //------------------------------------------------------------------------------------------------------
 #region Methods
 //------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Возвращает объект журнала приложений
 /// </summary>
 /// <returns></returns>
 public static XmlLog GetInstance()
 {
     if (_XmlLog == null)
     {
         lock (typeof(XmlLog))
         {
             if (_XmlLog == null)
             {
                 _XmlLog = new XmlLog();
             }
         }
     }
     return _XmlLog;
 }