Ejemplo n.º 1
0
 public static void CreateEacGateway(string hostName, int port)
 {
     if (instance != null) return;
     lock (typeof (EacGateway))
     {
         instance = new EacGateway(hostName, port);
     }
 }
Ejemplo n.º 2
0
 public static void CreateEacGateway(string hostName, int port)
 {
     if (instance != null)
     {
         return;
     }
     lock (typeof(EacGateway))
     {
         instance = new EacGateway(hostName, port);
     }
 }