Synced
TypeRegistry<TSnapshot>.OnActivating
Section titled “TypeRegistry<TSnapshot>.OnActivating”
- Reversibly activates a complete candidate while the previous snapshot remains available.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Extensibility.Types
Declaration
Section titled “Declaration”protected virtual void Inno.Extensibility.Types.TypeRegistry<TSnapshot>.OnActivating(TSnapshot? previous, TSnapshot candidate)Parameters
Section titled “Parameters”Parameter previous: The previous active snapshot, or null during initial activation.
Parameter candidate: The candidate exposed through P:Inno.Extensibility.Types.TypeRegistry`1.current during this callback.
Remarks
Section titled “Remarks”Implementations may perform fallible lifecycle work here. They must keep enough local state for M:Inno.Extensibility.Types.TypeRegistry`1.OnActivationRolledBack(`0,`0) to reverse every completed step.