Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Registers an object and assigns its session-local runtime identity.

API: engine
Project: Inno.Core.Identity

public bool Inno.Core.Identity.IdentityAllocator.Register(Inno.Core.Identity.IdentityObject obj, System.Guid? persistentId = null)

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.

true when the object was newly registered; otherwise, false.

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.