public void ReformTermsAsynchronously(IEnumerable<String> terms, ImprovedQueryReady callback) { var worker = new BackgroundWorker { WorkerReportsProgress = false, WorkerSupportsCancellation = false }; worker.DoWork += (sender, args) => callback.Invoke(ReformTermsSynchronously(terms)); worker.RunWorkerAsync(); }
public void ReformTermsAsynchronously(IEnumerable <String> terms, ImprovedQueryReady callback) { var worker = new BackgroundWorker { WorkerReportsProgress = false, WorkerSupportsCancellation = false }; worker.DoWork += (sender, args) => callback.Invoke(ReformTermsSynchronously(terms)); worker.RunWorkerAsync(); }