Last active
October 19, 2018 18:46
-
-
Save vmandic/41d3cb961854c05b6e7c007024848544 to your computer and use it in GitHub Desktop.
meds-processor, p2, s2
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) | |
{ | |
services.AddAngleSharp(); | |
// adding the AppPathsInfo singleton instance carrying the ContentRootPath | |
// provided by the IHostingEnvironment injected instance | |
services.AddSingleton( | |
s => new AppPathsInfo(s.GetService<IHostingEnvironment>().ContentRootPath)); | |
services.AddSingleton<HzzoHtmlScraper>(); | |
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