AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

SitePageLifecycleHandler Class

Base class for external handlers that receive lifecycle callbacks for SitePage operations performed by CMSSitePageEngine. Tenant assemblies inherit this class and override only the hooks they need; the handler class is wired to a domain via the Lifecycle Handlers configuration (Configurations → Site → Lifecycle Handlers).

Mirrors the hook contract used by BusinessObject<T>: every hook returns true to allow the operation to proceed and false to abort it. Any out message populated by the handler is surfaced to the engine event log. Exceptions thrown from a hook are caught by the engine, logged, and treated as a false return on Pre hooks.

Post hooks run after the database write has committed and are not enclosed in the same transaction; a failure in a Post hook does not roll back the operation.

Namespace:  AdvantageCMS.Core.Admin.Extensibility
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public abstract class SitePageLifecycleHandler

Inheritance Hierarchy


Object
  AdvantageCMS.Core.Admin.Extensibility..::..SitePageLifecycleHandler