Class ScyllaFrameworkShutdownEvent
Published by ShutdownFramework() at the very start of the framework teardown sequence, before any module has been shut down.
Inherited Members
Namespace: Scylla.Core.Events
Assembly: ScyllaCore.dll
Syntax
public sealed class ScyllaFrameworkShutdownEvent : ScyllaEvent
Remarks
Subscribers receive this event while the framework is still fully operational: every module is still in Enabled and can still be queried via GetModule<T>(string). This makes the event a safe place to perform last-chance work that depends on modules (flushing save data, emitting telemetry, persisting user state).
After this event is dispatched, the module manager shuts modules down in
strict reverse initialisation order. Subscribers must not call back into
modules from delayed callbacks (e.g., Task.Delay continuations)
because by the time such continuations resume the modules will already
have been torn down.
The event is published on the main thread and fires exactly once per
successful framework lifecycle (only if
IsInitialized was true at the moment
ShutdownFramework() was called).