Class LifecycleHookRegistration
Represents a registration for a lifecycle hook, allowing it to be unregistered when disposed.
public sealed class LifecycleHookRegistration : IDisposable
- Inheritance
-
LifecycleHookRegistration
- Implements
- Inherited Members
Constructors
LifecycleHookRegistration(Action)
Initializes a new instance of the LifecycleHookRegistration class with the specified dispose action.
public LifecycleHookRegistration(Action dispose)
Parameters
disposeActionThe action to execute when the registration is disposed.
Methods
Dispose()
public void Dispose()