ConfigurationExtensions
Represents a helper to construct objects with externally
defined classes and libraries.
Gets the default encoding for the given configuration.
Gets the cookie for the provided address.
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.
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.
Sets the cookie for the provided address.