Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }