public void StopBackgroundWokers() { workContext.StopWork(); tasksBackgroundTask.Wait(); indexingBackgroundTask.Wait(); reducingBackgroundTask.Wait(); }