ConfigurationExtensions
Represents a helper to construct objects with externally defined
classes and libraries.
Gets the default encoding for the given configuration.
Finds an existing browsing context with the given name.
Tries to resolve a command service with the given command id.
Gets the cookie for the provided address.
Gets the provided current culture.
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.
Gets the provided current language.
Tries to get a requester for the given scheme.
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.
Gets a spellchecker for the given language.
Tries to resolve a style engine for the given type name.
Tries to load the content for the given url from cache.
public static Task<Stream> LoadCached(this IConfiguration options, Url url, CancellationToken cancel)
Tries to load the content for the given url from cache.
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.
Creates a new browsing context without any name.
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.
Sets the cookie for the provided address.