AngleSharp by AngleSharp

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

 ConfigurationExtensions

public static class ConfigurationExtensions
A set of useful extensions for Configuration (or derived) objects.
public static bool Has<TService>(this IConfiguration configuration)

Checks if the configuration holds any references to the given service.

public static IConfiguration With(this IConfiguration configuration, object service)

Returns a new configuration that includes the given service.

public static IConfiguration With(this IConfiguration configuration, IEnumerable<object> services)

Returns a new configuration that includes the given services.

public static IConfiguration With<TService>(this IConfiguration configuration, Func<IBrowsingContext, TService> creator)

Returns a new configuration that includes the given service creator.

public static IConfiguration WithCulture(this IConfiguration configuration, string name)

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

public static IConfiguration WithCulture(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 IConfiguration WithDefaultCookies(this IConfiguration configuration)

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

public static IConfiguration WithDefaultLoader(this IConfiguration configuration, LoaderOptions setup = 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.

public static IConfiguration WithMetaRefresh(this IConfiguration configuration, Predicate<Url> shouldRefresh = null)

Registeres a handler to include the meta data refresh.

public static IConfiguration WithOnly<TService>(this IConfiguration configuration, TService service)

Returns a new configuration that includes only the given service, excluding other instances or instance creators for the same service.

public static IConfiguration WithOnly<TService>(this IConfiguration configuration, Func<IBrowsingContext, TService> creator)

Returns a new configuration that includes only the given service creator, excluding other instances or instance creators for the same service.

public static IConfiguration Without(this IConfiguration configuration, object service)

Returns a new configuration that excludes the given service.

public static IConfiguration Without(this IConfiguration configuration, IEnumerable<object> services)

Returns a new configuration that excludes the given services.

public static IConfiguration Without<TService>(this IConfiguration configuration)

Returns a new configuration that excludes the given service creator.