Created
October 18, 2018 19:03
-
-
Save vmandic/f62d6847a46ee8933cf79c280991b70a to your computer and use it in GitHub Desktop.
meds-processor, p2, s4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
// we need the http client factory: | |
services.AddHttpClient(); | |
services.AddAngleSharp(); | |
services.AddSingleton( | |
s => new AppPathsInfo(s.GetService<IHostingEnvironment>().ContentRootPath)); | |
services.AddSingleton<HzzoHtmlScraper>(); | |
// we need our downloader: | |
services.AddSingleton<HzzoExcelDownloader>(); | |
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment