Models.ClientResources.ClientResources Class
Namespace: Nucleus.Abstractions.Models.ClientResources
Assembly: Nucleus.Abstractions.dll
Class used to store a list of client resources (scripts, stylesheets and web assemblies) which are used by a page.
Properties
AllowedSources
Property
Allowed sources for Content Security Policy for the page, used to control which resources can be loaded by the browser.
Scripts
Property
A list of scripts to add to the current page output.
ScriptsLocked
Property
Flag which is set by
LockScripts to signal that no more scripts should be added.
StyleSheets
Property
A list of stylesheets to add to the current page output.
StylesLocked
Property
Flag which is set by
LockStyles to signal that no more scripts should be added.
WebAssemblies
Property
A list of Web Assemblies to dynamically load.
Fields
ITEMS_KEY
Key for page resources object in HttpContext.Items
Methods
LockScripts
LockScripts ()
Sets a flag to prevent any more scripts from being added to the
Scripts list.
LockStyles
LockStyles ()
Sets a flag to prevent any more stylesheets from being added to the
StyleSheets list.