Skip to content

IDynamicScriptManager interface

namespace: Serenity.Web   assembly: Serenity.Net.Web

Dynamic script manager abstraction.

public interface IDynamicScriptManager

Members

name description
event ScriptChanged Raised when a script changes.
Changed(…) Raises the script changed event for the script.
GetRegisteredScriptNames() Gets a list of registered script names.
GetRegisteredScripts() Gets a dictionary of registered script names and their cached hashes.
GetScriptCacheSuffix(…) Gets the cache suffix of the dynamic script, if it implements ICacheSuffix.
GetScriptInclude(…) Gets a script include element HTML markup.
GetScriptText(…) Gets the dynamic script text.
HasScriptPermission(…) Returns true if the current user has permission to access the dynamic script, or if no script with the name is registered.
IfNotRegistered(…) Executes the callback if a script with the name is not already registered.
IsRegistered(…) Returns whether a script with the name is registered.
ReadScriptContent(…) Reads the content of a dynamic script.
Register(…) Registers a dynamic script, potentially overriding a script with the same registration name. (2 methods)
Reset() Resets the dynamic script cache.

See Also