ConfigurationExtensions
Represents a helper to construct objects with externally
defined classes and libraries.
Gets the default encoding for the given configuration.
Tries to resolve a script engine for the given type name.
Tries to resolve a style engine for the given type name.
Loads the given URI by using an asynchronous GET request.
Loads the given URI by using an asynchronous GET request.
public static Task<Stream> LoadAsync(this IConfiguration configuration, string url, CancellationToken cancel, bool force = false)
Loads the given URI by using an asynchronous GET request.
public static Task<Stream> LoadAsync(this IConfiguration configuration, Uri url, CancellationToken cancel, bool force = false)
Loads the given URI by using an asynchronous GET request.
public static IStyleSheet ParseStyling(this IConfiguration configuration, string source, IElement owner = null, 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, Stream source, IElement owner = null, 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, Stream 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 Task<Stream> SendAsync(this IConfiguration configuration, Uri url, Stream content = null, string mimeType = null, HttpMethod method = 1)
Loads the given URI by using an asynchronous request with the given method and body.
public static Task<Stream> SendAsync(this IConfiguration configuration, Uri url, Stream content, string mimeType, HttpMethod method, CancellationToken cancel, bool force = false)
Loads the given URI by using an asynchronous request with the given method and body.