Esempio n. 1
0
 /// <summary>
 /// 
 /// </summary>
 static MQHandlerSync()
 {
     _mqHandler = new MQHandlerSync();
 }
Esempio n. 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public static MQHandlerSync GetSingleton()
 {
     if (_mqHandler != null)
         return _mqHandler;
     lock (typeof(MQHandlerSync))
     {
         if (_mqHandler != null)
             return _mqHandler;
         _mqHandler = new MQHandlerSync();
         return _mqHandler;
     }
 }