Ejemplo n.º 1
0
 public HtmlLoader(IParserSettingsService settings)
 {
     client = new HttpClient();
     client.DefaultRequestHeaders.Add("User-Agent", "C# App");            //Это для индентификации на сайте-жертве.
     //url = settings.BaseUrl;
     url           = $"{settings.BaseUrl}{phpScript}?{settings.Postfix}"; //test
     carDetailsUrl = settings.CarDetailsUrl;                              //test
     carPhotosUrl  = settings.CarPhotosUrl;                               //test
 }
Ejemplo n.º 2
0
 public RstParserBackgroundWorker(
     ILogger <RstParserBackgroundWorker> logger,
     IParserSettingsService settingsService,
     IServiceProvider serviceProvider)
 {
     _logger          = logger;
     _settingsService = settingsService;
     _serviceProvider = serviceProvider;
 }