AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.7.0" />

 ConfigurationExtensions

Represents a helper to construct objects with externally defined classes and libraries.
public static Encoding DefaultEncoding(this IConfiguration configuration)

Gets the default encoding for the given configuration.

public static string GetCookie(this IConfiguration options, string origin)

Gets the cookie for the provided address.

public static string GetLanguage(this IConfiguration configuration)

Gets the provided current language.

public static IRequester GetRequester(this IConfiguration options, string protocol)

Tries to get a requester for the given scheme.

public static IScriptEngine GetScriptEngine(this IConfiguration configuration, string type)

Tries to resolve a script engine for the given type name.

public static TService GetService<TService>(this IConfiguration configuration) where TService : IService

Gets a service with a specific type from the configuration, if it has been registered.

public static IEnumerable<TService> GetServices<TService>(this IConfiguration configuration) where TService : IService

Gets services with a specific type from the configuration, if it has been registered.

public static IStyleEngine GetStyleEngine(this IConfiguration configuration, string type)

Tries to resolve a style engine for the given type name.

public static Task<TResource> LoadResource<TResource>(this IConfiguration options, Url url) where TResource : IResourceInfo

Tries to load an image if a proper image service can be found.

public static Task<TResource> LoadResource<TResource>(this IConfiguration options, Url url, CancellationToken cancel) where TResource : IResourceInfo

Tries to load an image if a proper image service can be found.

public static IStyleSheet ParseStyling(this IConfiguration configuration, string source, StyleOptions options, string type = null)

Parses the given source code by using the supplied type name (otherwise it is text/css) and returns the created stylesheet.

public static IStyleSheet ParseStyling(this IConfiguration configuration, IResponse response, StyleOptions options, string type = null)

Parses the given source code by using the supplied type name (otherwise it is text/css) and returns the created stylesheet.

public static void RunScript(this IConfiguration configuration, string source, ScriptOptions options, string type = null)

Parses the given source code by using the supplied type name (otherwise it is text/css) and returns the created stylesheet.

public static void RunScript(this IConfiguration configuration, IResponse response, ScriptOptions options, string type = null)

Parses the given source code by using the supplied type name (otherwise it is text/css) and returns the created stylesheet.

public static void SetCookie(this IConfiguration options, string origin, string value)

Sets the cookie for the provided address.