Class OrderedLifecycleHook
Represents a lifecycle hook with an associated owner, execution order, and callback action.
public sealed class OrderedLifecycleHook
- Inheritance
-
OrderedLifecycleHook
- Inherited Members
Constructors
OrderedLifecycleHook(string, int, Action)
Initializes a new instance of the OrderedLifecycleHook class with the specified owner, order, and callback.
public OrderedLifecycleHook(string owner, int order, Action callback)
Parameters
ownerstringThe owner of the lifecycle hook.
orderintThe execution order of the lifecycle hook.
callbackActionThe callback action to be invoked for the lifecycle hook.
Properties
Callback
Gets the callback action associated with the lifecycle hook, which will be invoked when the hook is executed. This action defines the behavior that will occur when the lifecycle event associated with the hook is triggered.
public Action Callback { get; }
Property Value
Order
Gets the execution order of the lifecycle hook, determining the sequence in which it will be invoked relative to other hooks. Hooks with lower order values will be executed before those with higher values.
public int Order { get; }
Property Value
Owner
Gets the owner of the lifecycle hook, which is used to identify and manage the hook within the system.
public string Owner { get; }