Interface IApplicationShutdownRegistry
Provides a registry for objects that need to be notified during application shutdown.
Namespace: Umbraco.Cms.Core.Hosting
Assembly: Umbraco.Core.dll
Syntax
public interface IApplicationShutdownRegistry
Remarks
Registered objects receive callbacks when the application is stopping, allowing them to perform cleanup operations before the application terminates.
Methods
View SourceRegisterObject(IRegisteredObject)
Registers an object to receive shutdown notifications.
Declaration
void RegisterObject(IRegisteredObject registeredObject)
Parameters
| Type | Name | Description |
|---|---|---|
| IRegisteredObject | registeredObject | The object to register for shutdown notifications. |
UnregisterObject(IRegisteredObject)
Unregisters an object from receiving shutdown notifications.
Declaration
void UnregisterObject(IRegisteredObject registeredObject)
Parameters
| Type | Name | Description |
|---|---|---|
| IRegisteredObject | registeredObject | The object to unregister. |