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 }
public RstParserBackgroundWorker( ILogger <RstParserBackgroundWorker> logger, IParserSettingsService settingsService, IServiceProvider serviceProvider) { _logger = logger; _settingsService = settingsService; _serviceProvider = serviceProvider; }