namespace BomLocalService.Services.Scraping;
///
/// Interface for a single scraping step
///
public interface IScrapingStep
{
///
/// Unique name of the step
///
string Name { get; }
///
/// Names of steps that must complete before this step can execute
///
string[] Prerequisites { get; }
///
/// Checks if the step can execute in the current page state
///
bool CanExecute(ScrapingContext context);
///
/// Executes the step
///
Task ExecuteAsync(ScrapingContext context, CancellationToken cancellationToken);
}