Пример #1
0
        private IPlatformEventScraper CreateScraper(Page page, ScrapingCommand cmd)
        {
            switch (cmd.PlatformEvent.Platform)
            {
            case Platform.Winamax:
                return(new WinamaxEventScraper(page, cmd.PlatformEvent));

            default:
                throw new ArgumentException($"Unsupported platform: {cmd.PlatformEvent.Platform}");
            }
        }
Пример #2
0
 public ScrapingInfo(ScrapingCommand scrapingCommand, Page page, IActorRef actor)
 {
     ScrapingCommand = scrapingCommand;
     Page            = page;
     Actor           = actor;
 }
Пример #3
0
 public CommandQueued(ScrapingCommand command)
 {
     Command = command;
 }
Пример #4
0
 public PageDenied(ScrapingCommand scrapingCommand)
 {
     ScrapingCommand = scrapingCommand;
 }
Пример #5
0
 public PageGranted(ScrapingCommand scrapingCommand, Page page)
 {
     ScrapingCommand = scrapingCommand;
     Page            = page;
 }
Пример #6
0
 public RequestPage(ScrapingCommand scrapingCommand)
 {
     ScrapingCommand = scrapingCommand;
 }