public void StartProcess(WebBrowser webBrowser, IDataWebScraperConfiguration dataWebScraperConfiguration) { IDataWebScraperSelfIterator dataWebScraperSelfIterator = DataWebScraperSelfIteratorFactory.GetDataWebScraperSelfIterator(webBrowser); dataWebScraperSelfIterator.SetElements(dataWebScraperConfiguration.DataWebScraperSteps.OrderBy(s => s.StepSequence)); dataWebScraperSelfIterator.Iterate(); dataWebScraperSelfIterator.DataWebScraperSelfIteratorWasComplete += DataWebScraperSelfIterator_DataWebScraperSelfIteratorWasComplete; ApplicationWrapper.Instance().Run(); }
private void DataWebScraperSelfIterator_DataWebScraperSelfIteratorWasComplete(object sender, EventArgs e) { ApplicationWrapper.Instance().Exit(); WebBrowserConfigurationRunnerProcessorWasCompleted?.Invoke(this, null); }