Register style bundles¶
Build and register the common and Kendo style bundles the consuming application serves. Trigger: Consuming application's bundle registration at startup*.
| Field | Value |
|---|---|
| Operation ID | OP-25 |
| Trigger | Consuming application's bundle registration at startup* |
| Inputs | BundleCollection, virtual path, Kendo version string |
| Outputs | StyleBundle added to the collection and returned |
| Primary components | BundleExtensions.RegisterCommonStyles, RegisterKendoStyles, IncludeMany |
| Entry point | src/Web.Mvc/Extensions/BundleTableExtensions.cs |
Steps¶
RegisterCommonStylesbuilds aStyleBundleat the supplied virtual path including~/Resources/Mvc/BusinessOnline/Css/toolbar.css, adds it to the collection, and returns it (BR-57).RegisterKendoStylesbuilds a bundle including~/Resources/Mvc/BusinessOnline/Css/kendo/{version}/kendo.common.min.cssandkendo.default.min.css, adds it, and returns it (BR-58).IncludeManyappends{baseUrl}/{file}.cssfor every supplied file name; the.cssextension is always added by the helper (BR-59).
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Bundle registration at startup])
Common[RegisterCommonStyles adds toolbar.css]
Kendo[RegisterKendoStyles adds versioned kendo css]
Many[IncludeMany appends .css files]
EndOk([Bundles added to collection])
Start --> Common
Common --> Kendo
Kendo --> Many
Many --> EndOk
Failure and edge-case behavior¶
- No unexpected failure paths beyond argument-guard exceptions and delegated dependency behavior were identified for this operation.
Related documentation¶
Note: Statements marked with
*were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with**could not be confirmed; treat as unknown until verified.
Sources¶
src/Web.Mvc/Extensions/BundleTableExtensions.cs