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