AngleSharp by AngleSharp

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

 ConfigurationExtensions

public static class ConfigurationExtensions
A set of useful extensions for Configuration (or derived) objects.
public static Configuration SetCulture(this IConfiguration configuration, string cultureName)

Returns a new configuration that uses the culture with the provided name.

public static Configuration SetCulture(this IConfiguration configuration, CultureInfo culture)

Returns a new configuration that uses the given culture. Providing null will reset the culture to the default one.

public static Configuration SetEvents(this IConfiguration configuration, IEventAggregator events)

Returns a new configuration that uses the given event aggregator. Providing null will reset the events to the default one.

public static IConfiguration SetHandler<T>(this IConfiguration configuration, ISubscriber<T> subscriber)

Uses the currently active event aggregator or integrates a simple default aggregator to add the subscriber.

public static Configuration With(this IConfiguration configuration, IService service)

Returns a new configuration that includes the given service.

public static IConfiguration WithCookies(this IConfiguration configuration)

Registers the default cookie service if no other cookie service has been registered yet.

public static IConfiguration WithCss(this IConfiguration configuration, Action<CssStyleEngine> setup = null)

Registers the default styling service with a new CSS style engine to retrieve, if no other styling service has been registered yet.

public static IConfiguration WithDefaultLoader(this IConfiguration configuration, Action<LoaderService> setup = null, IEnumerable<IRequester> requesters = null)

Registers the default loader service, if no other loader has been registered yet.

public static IConfiguration WithLocaleBasedEncoding(this IConfiguration configuration)

Registeres the default encoding determination algorithm, as specified by the W3C.