public static void CreateEacGateway(string hostName, int port) { if (instance != null) return; lock (typeof (EacGateway)) { instance = new EacGateway(hostName, port); } }
public static void CreateEacGateway(string hostName, int port) { if (instance != null) { return; } lock (typeof(EacGateway)) { instance = new EacGateway(hostName, port); } }