DynamicScriptServiceCollectionExtensions.AddScriptBundling method (1 of 2)
Registers the default service types related to script bundling, including IScriptBundleManager.
public static IServiceCollection AddScriptBundling(this IServiceCollection collection)
| parameter |
description |
| collection |
The service collection. |
Return Value
The same service collection so that calls can be chained.
Exceptions
| exception |
condition |
| ArgumentNullException |
collection is null. |
See Also
DynamicScriptServiceCollectionExtensions.AddScriptBundling method (2 of 2)
Registers the default service types related to script bundling, including IScriptBundleManager.
public static void AddScriptBundling(this IServiceCollection collection,
Action<ScriptBundlingOptions> setupAction)
| parameter |
description |
| collection |
The service collection. |
| setupAction |
The action to edit options. |
Exceptions
| exception |
condition |
| ArgumentNullException |
collection or setupAction is null. |
See Also