Created
October 13, 2018 17:49
-
-
Save vmandic/412027d82c94be6a0cc7a24ed8e06c8f to your computer and use it in GitHub Desktop.
meds-processor, part 1 of 6, snippet 3
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
using AngleSharp; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace MedsProcessor.Scraper | |
{ | |
public static class ServiceCollectionExtensions | |
{ | |
public static IServiceCollection AddAngleSharp(this IServiceCollection services) => | |
services.AddSingleton(BrowsingContext.New( | |
AngleSharp.Configuration.Default.WithDefaultLoader())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment