Table of Contents

Class LifecycleHookRegistration

Namespace
Gravitas.Support
Assembly
Gravitas.dll

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

dispose Action

The action to execute when the registration is disposed.

Methods

Dispose()

public void Dispose()