Example #1
0
 public ProductWatcherManager(ProductWatcherContext productWatcherContext,
                              HangfireSchedulerClient hangfireSchedulerClient,
                              PriceParserFactory priceParserFactory,
                              ScreenshotLoaderFactory screenshotLoaderFactory,
                              HtmlLoaderFactory htmlLoaderFactory,
                              ILogger <ProductWatcherManager> logger,
                              IConfiguration configuration)
 {
     _productWatcherContext   = productWatcherContext;
     _hangfireSchedulerClient = hangfireSchedulerClient;
     _priceParserFactory      = priceParserFactory;
     _htmlLoaderFactory       = htmlLoaderFactory;
     _logger                  = logger;
     _configuration           = configuration;
     _screenshotLoaderFactory = screenshotLoaderFactory;
 }
 public ProductWatcherController(ProductWatcherManager productWatcherManager, ILogger <ProductWatcherController> logger, HangfireSchedulerClient hangfireSchedulerClient)
 {
     _productWatcherManager = productWatcherManager ?? throw new ArgumentNullException($"Параметр {nameof(productWatcherManager)} не может быть null");
     _logger = logger;
     this.hangfireSchedulerClient = hangfireSchedulerClient;
 }