Synced
TypeRegistry<TSnapshot>.OwnCandidateExtension
Section titled “TypeRegistry<TSnapshot>.OwnCandidateExtension”
- Adds a newly constructed extension to the current build’s rollback ownership before further validation.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Extensibility.Types
Declaration
Section titled “Declaration”protected TExtension Inno.Extensibility.Types.TypeRegistry<TSnapshot>.OwnCandidateExtension<TExtension>(TExtension extension)Type parameters
Section titled “Type parameters”Type parameter TExtension: The newly constructed extension contract.
Parameters
Section titled “Parameters”Parameter extension: A new instance, never an instance borrowed from the active snapshot.
Returns
Section titled “Returns”The same instance. After a successful build its containing snapshot must own its retirement.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: This method is called outside synchronous candidate construction.