protected virtual void JoinContainee(MockObject containee, DateTime joinTime) { if (containee == null || Containees.ContainsKey(containee.Uuid)) { return; } Containees[containee.Uuid] = containee; containee.JoinContainer(this, joinTime); UpdateObjectLastWrite(joinTime); }
protected virtual void UnjoinContainee(MockObject containee, DateTime unjoinTime) { if (containee == null || !Containees.ContainsKey(containee.Uuid)) { return; } Containees.Remove(containee.Uuid); containee.UnjoinContainer(this, unjoinTime); UpdateObjectLastWrite(unjoinTime); }