static void Main(string[] args) { Thread serviceThread = new Thread(startService); serviceThread.Start(); CacheServer cs = new CacheServer(); Console.ReadKey(); }