Class ScyllaModuleShutdownEvent
Published once for each module immediately before its Shutdown() method is invoked by the module manager. Provides a last-chance notification while the module is still in Enabled (or Disabled).
Inherited Members
Namespace: Scylla.Core.Events
Assembly: ScyllaCore.dll
Syntax
public sealed class ScyllaModuleShutdownEvent : ScyllaEvent
Remarks
This event is the per-module counterpart to ScyllaFrameworkShutdownEvent. It fires in strict reverse initialisation order during full framework teardown, and also fires when an individual module is unregistered at runtime (e.g., DLC unload).
Subscribers may still call GetModule<T>(string) for the shutting-down module from inside this handler; the module's resources have not yet been released. Do not, however, perform long-running or asynchronous work from the handler - by the time such work completes the module will have been shut down.
The event is published on the main thread. Subscribers should filter by ModuleID to respond only to the modules they care about.
Constructors
ScyllaModuleShutdownEvent(string)
Initializes a new ScyllaModuleShutdownEvent for the module
identified by moduleID.
Declaration
public ScyllaModuleShutdownEvent(string moduleID)
Parameters
| Type | Name | Description |
|---|---|---|
| string | moduleID | The unique ID of the module that is about to be shut down. Must be non-null and non-empty. |
Properties
ModuleID
Gets the unique ID of the module that is about to be shut down.
Declaration
public string ModuleID { get; }
Property Value
| Type | Description |
|---|---|
| string | The ID of the module as registered with the module manager. Matches the constants in ScyllaModuleID for built-in modules. |