ConfigurationExtensions
A set of useful extensions for Configuration (or derived) objects.
Returns a new configuration that uses the culture with the provided
name.
Returns a new configuration that uses the given culture. Providing
null will reset the culture to the default one.
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.
Returns a new configuration that includes the given service.
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.
Registeres the default encoding determination algorithm, as
specified by the W3C.