Example #1
0
        public int GetId(int?id = null)
        {
            if (!id.HasValue)
            {
                return(IdPool.AllocateInstance());
            }

            IdPool.AllocateSpecificId(id.Value);
            return(id.Value);
        }
Example #2
0
 public void Destroy(int entityId)
 {
     IdPool.ReleaseInstance(entityId);
 }