private void StartWorker() { CreateWorkerIfNeeded(); Task.Run(() => { _kaTaLyzerWorker.Start(); }); _dialogs.WaitUntilKeyIsPressed(ConsoleKey.Escape); _kaTaLyzerWorker.Stop(); }
public void Stop() { _kaTaLyzerWorker?.Stop(); }