public int GetId(int?id = null) { if (!id.HasValue) { return(IdPool.AllocateInstance()); } IdPool.AllocateSpecificId(id.Value); return(id.Value); }
public void Destroy(int entityId) { IdPool.ReleaseInstance(entityId); }