Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

TypeRegistry<TSnapshot>.OwnCandidateExtension

Section titled “TypeRegistry<TSnapshot>.OwnCandidateExtension”
  • Adds a newly constructed extension to the current build’s rollback ownership before further validation.

API: engine
Project: Inno.Extensibility.Types

protected TExtension Inno.Extensibility.Types.TypeRegistry<TSnapshot>.OwnCandidateExtension<TExtension>(TExtension extension)

Type parameter TExtension: The newly constructed extension contract.

Parameter extension: A new instance, never an instance borrowed from the active snapshot.

The same instance. After a successful build its containing snapshot must own its retirement.

Exception T:System.InvalidOperationException: This method is called outside synchronous candidate construction.