Exemple #1
0
        public int Allocate(SlotCategory slotCategory)
        {
            this.slotCategory = SlotCategoryFactory.GetSlotCategory(slotCategory);
            int resourceId = this.slotCategory.resourceId;

            this.slotCategory.MarkBusy();
            return(resourceId);
        }
Exemple #2
0
 public void Deallocate(SlotCategory slotCategory, int resourceId)
 {
     this.slotCategory            = SlotCategoryFactory.GetSlotCategory(slotCategory);
     this.slotCategory.resourceId = resourceId;
     this.slotCategory.MarkFree();
 }