public static void Init() { lock (Lock) { if (_instance != null) throw new ApplicationException("Cannot Init ApiEventReader more than once!"); _instance = new ApiEventReader(); ThreadPool.QueueUserWorkItem(InitReader); } }
public static void Init() { lock (Lock) { if (_instance != null) { throw new ApplicationException("Cannot Init ApiEventReader more than once!"); } _instance = new ApiEventReader(); ThreadPool.QueueUserWorkItem(InitReader); } }