public static void AddWorker() { lock (Workers) { var worker = new EventLoopWorker(); if (IsRunning) { worker.Start(); } Workers.Add(worker); } }