Synced
IdentityAllocator.InitializePersistentIdentity
Section titled “IdentityAllocator.InitializePersistentIdentity”
- Assigns a persistent identity to a detached object without allocating a runtime identity.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Identity
Declaration
Section titled “Declaration”public void Inno.Core.Identity.IdentityAllocator.InitializePersistentIdentity(Inno.Core.Identity.IdentityObject obj, System.Guid persistentId)Parameters
Section titled “Parameters”Parameter obj: The detached identity object to initialize.
Parameter persistentId: The non-empty persistent identity to assign.
Exceptions
Section titled “Exceptions”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.