예제 #1
0
파일: Program.cs 프로젝트: Dimo99/Auto
        private static void LoadCars(ServiceProvider serviceProvider)
        {
            ExistingCars existingCars = serviceProvider.GetService <ExistingCars>();
            CarFinder    carFinder    = serviceProvider.GetService <CarFinder>();

            existingCars.Load(carFinder.GetAddUrls());
        }
예제 #2
0
 public CarsBgDataCollector(ExistingBrands existingBrands, ExistingModels existingModels, ExistingCars existingCars, ILogger logger)
 {
     this.browser          = new ScrapingBrowser();
     this.browser.Encoding = Encoding.UTF8;
     this.existingBrands   = existingBrands;
     this.existingModels   = existingModels;
     this.existingCars     = existingCars;
     this.logger           = logger;
 }