Skip to content

DynamicScriptServiceCollectionExtensions.UseCssWatching method (1 of 2)

Activates CSS file watching.

public static IServiceProvider UseCssWatching(this IServiceProvider serviceProvider)
parameter description
serviceProvider The service provider.

See Also


DynamicScriptServiceCollectionExtensions.UseCssWatching method (2 of 2)

Activates CSS file watching.

public static IServiceProvider UseCssWatching(this IServiceProvider serviceProvider, 
    params string[] cssPaths)
parameter description
serviceProvider The service provider.
cssPaths The CSS paths to watch.

Return Value

The same service provider so that calls can be chained.

Exceptions

exception condition
ArgumentNullException serviceProvider or cssPaths is null.
InvalidOperationException No CSS bundle manager or content hash cache is registered.

See Also