Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }