Class ScriptSavedNotification
Notification that is published after a script file has been saved.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class ScriptSavedNotification : SavedNotification<IScript>, IStatefulNotification, INotification
Remarks
This notification is published by the IFileService after the script has been persisted. It is not cancelable since the save operation has already completed.
Constructors
View SourceScriptSavedNotification(IEnumerable<IScript>, EventMessages)
Initializes a new instance of the ScriptSavedNotification class with multiple scripts.
Declaration
public ScriptSavedNotification(IEnumerable<IScript> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IScript> | target | The collection of scripts that were saved. |
| EventMessages | messages | The event messages collection. |
ScriptSavedNotification(IScript, EventMessages)
Initializes a new instance of the ScriptSavedNotification class with a single script.
Declaration
public ScriptSavedNotification(IScript target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IScript | target | The script that was saved. |
| EventMessages | messages | The event messages collection. |