Esempio n. 1
0
 protected override void UnjoinContainee(MockObject child, DateTime unjoinTime)
 {
     base.UnjoinContainee(child, unjoinTime);
     if (child is MockChannel)
     {
         Channels.Remove(child as MockChannel);
     }
 }
Esempio n. 2
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. 3
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);
        }
Esempio n. 4
0
        public void JoinContainer(MockObject container, DateTime joinTime)
        {
            if (container == null || Containers.ContainsKey(container.Uuid))
            {
                return;
            }

            Containers[container.Uuid] = container;
            container.JoinContainee(this, joinTime);
            LastJoinedTime = joinTime;
            UpdateObjectLastWrite(joinTime);
        }
Esempio n. 5
0
        public void UnjoinContainer(MockObject container, DateTime unjoinTime)
        {
            if (container == null || !Containers.ContainsKey(container.Uuid))
            {
                return;
            }

            Containers.Remove(container.Uuid);
            container.UnjoinContainee(this, unjoinTime);
            LastUnjoinedTime = unjoinTime;
            UpdateObjectLastWrite(unjoinTime);
        }
Esempio n. 6
0
        protected virtual void RemoveParent(MockObject parent, DateTime updateTime, bool relationshipOnChild)
        {
            if (parent == null || !Parents.ContainsKey(parent.Uuid))
            {
                return;
            }

            Parents.Remove(parent.Uuid);
            parent.RemoveChild(this, updateTime, relationshipOnChild);
            if (relationshipOnChild)
            {
                UpdateObjectLastWrite(updateTime);
            }
        }
Esempio n. 7
0
        protected virtual void RemoveChild(MockObject child, DateTime updateTime, bool relationshipOnChild)
        {
            if (child == null || !Children.ContainsKey(child.Uuid))
            {
                return;
            }

            Children.Remove(child.Uuid);
            child.RemoveParent(this, updateTime, relationshipOnChild);
            if (!relationshipOnChild)
            {
                UpdateObjectLastWrite(updateTime);
            }
        }
Esempio n. 8
0
 public MockSubscriptionInfo(EtpVersion version, MockObject mockObject, Guid requestUuid)
 {
     RequestUuid       = requestUuid;
     IncludeObjectData = true;
     Context           = new MockGraphContext(mockObject.Uri(version));
 }