Exemplo n.º 1
0
 /// <summary>
 /// 单实例
 /// </summary>
 /// <returns></returns>
 static public CgwMonitorManageAdapter Instance()
 {
     if (monitorManageAdapter == null)
     {
         lock (instanceLocker)
         {
             monitorManageAdapter = new CgwMonitorManageAdapter();
             //client = new MonitorManageServiceClient();
         }
     }
     return(monitorManageAdapter);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 单实例
 /// </summary>
 /// <returns></returns>
 public static CgwMonitorManageAdapter Instance()
 {
     if (monitorManageAdapter == null)
     {
         lock (instanceLocker)
         {
             monitorManageAdapter = new CgwMonitorManageAdapter();
             //client = new MonitorManageServiceClient();
         }
     }
     return monitorManageAdapter;
 }