Outdated
IdentityAllocator
Section titled “IdentityAllocator”
- Owns the persistent-to-runtime identity map for one isolated runtime session.
Required contracts
Section titled “Required contracts”API: engine
Inherits: object
Project: Inno.Core.Identity
Declaration
Section titled “Declaration”public sealed class Inno.Core.Identity.IdentityAllocatorRegister and release an identity object shows the owner and lifetime sequence. Read the shared lifecycle and failure contracts before using these members.
Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | IdentityAllocator.Constructor | Creates an isolated runtime identity domain. |
| Events | IdentityAllocator.ObjectUnregistered | Occurs after an object has been permanently removed from this allocator. |
| Methods | IdentityAllocator.EnterScope | Binds this allocator to the current asynchronous execution context until the returned scope is disposed. |
| Methods | IdentityAllocator.Get(Inno.Core.Identity.RuntimeIdentity) | Resolves a domain-qualified runtime identity without allowing cross-session aliasing. |
| Methods | IdentityAllocator.Get(System.Guid) | Resolves a registered object by its persistent identity. |
| Methods | IdentityAllocator.Get(System.Int32) | Resolves a registered object by its session-local runtime identity. |
| Methods | IdentityAllocator.InitializePersistentIdentity | Assigns a persistent identity to a detached object without allocating a runtime identity. |
| Methods | IdentityAllocator.Register | Registers an object and assigns its session-local runtime identity. |
| Methods | IdentityAllocator.Unregister | Removes an object from this session and notifies every unregistration observer. |
| Properties | IdentityAllocator.count | Gets the number of currently registered identity entries. |
| Properties | IdentityAllocator.current | Gets the allocator bound to the current asynchronous execution context. |
| Properties | IdentityAllocator.domainId | Gets the process-unique domain that qualifies every runtime identity allocated here. |
| Properties | IdentityAllocator.hasCurrent | Gets whether the current asynchronous execution context is bound to an allocator. |