Table of Contents

Class OrderedLifecycleHook

Namespace
Gravitas.Support
Assembly
Gravitas.dll

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

owner string

The owner of the lifecycle hook.

order int

The execution order of the lifecycle hook.

callback Action

The 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

Action

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

int

Owner

Gets the owner of the lifecycle hook, which is used to identify and manage the hook within the system.

public string Owner { get; }

Property Value

string