AngleSharp by AngleSharp

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

 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 IBrowsingContext FindContext(this IConfiguration options, string name)

Finds an existing browsing context with the given name.

public static ICommandService GetCommand(this IConfiguration options, string commandId)

Tries to resolve a command service with the given command id.

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

Gets the cookie for the provided address.

public static ICssStyleEngine GetCssStyleEngine(this IConfiguration configuration)

Tries to resolve the CSS style engine.

public static CultureInfo GetCulture(this IConfiguration options)

Gets the provided current culture.

public static CultureInfo GetCultureFromLanguage(this IConfiguration options, string language)

Gets the culture from the given language string or falls back to the default culture of the provided configuration (if any). Last resort is to use the current UI culture.

public static string GetLanguage(this IConfiguration options)

Gets the provided current language.

public static IResourceService<TResource> GetResourceService<TResource>(this IConfiguration configuration, string type) where TResource : IResourceInfo

Gets a service for a specific resource type from the configuration.

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 ISpellCheckService GetSpellCheck(this IConfiguration options, string language)

Gets a spellchecker for the given language.

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

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

public static bool IsScripting(this IConfiguration configuration)

public static IBrowsingContext NewContext(this IConfiguration options, Sandboxes security = 0)

Creates a new browsing context without any name.

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

Sets the cookie for the provided address.