Synced
IdentityAllocator.Register
Section titled “IdentityAllocator.Register”
- Registers an object and assigns its session-local runtime identity.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Identity
Declaration
Section titled “Declaration”public bool Inno.Core.Identity.IdentityAllocator.Register(Inno.Core.Identity.IdentityObject obj, System.Guid? persistentId = null)Parameters
Section titled “Parameters”Parameter obj: The identity object owned by this runtime session.
Parameter persistentId: An optional persistent identity override. When omitted, the object’s existing persistent identity is retained. An empty resolved identity is replaced with a newly generated identity.
Returns
Section titled “Returns”true when the object was newly registered; otherwise, false.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when obj is null.
Exception T:System.InvalidOperationException: Thrown when a different live object is already registered with the resolved persistent identity.