private void ProcessMessage(string message) { switch (message) { case "build": new Task(async() => { try { await _translateService.Build(); } catch (Exception ex) { Console.WriteLine(ex); } finally { Finished(); } }).Start(); break; } }