Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

IdentityAllocator.InitializePersistentIdentity

Section titled “IdentityAllocator.InitializePersistentIdentity”
  • Assigns a persistent identity to a detached object without allocating a runtime identity.

API: engine
Project: Inno.Core.Identity

public void Inno.Core.Identity.IdentityAllocator.InitializePersistentIdentity(Inno.Core.Identity.IdentityObject obj, System.Guid persistentId)

Parameter obj: The detached identity object to initialize.

Parameter persistentId: The non-empty persistent identity to assign.

Exception T:System.ArgumentNullException: Thrown when obj is null.

Exception T:System.ArgumentException: Thrown when persistentId is empty.

Exception T:System.InvalidOperationException: Thrown when the object already has a live runtime identity.