/// <summary> /// Runs this instance. /// </summary> /// <returns></returns> public int Run() { var cancelAfterMs = 600000; var names = Import.FromTxt(_namesFilePath); var searchCriteria = SearchCriteriaFactory.Get(_maxRuns, _city, _state, _zip); var searches = SearchesFactory.Get(searchCriteria, names); using (var cancellationTokenSource = new CancellationTokenSource(cancelAfterMs)) { var token = cancellationTokenSource.Token; Task.Run(() => PeopleSearchTask(searches, token)); } return(0); }