Exemple #1
0
 protected override void UnjoinContainee(MockObject child, DateTime unjoinTime)
 {
     base.UnjoinContainee(child, unjoinTime);
     if (child is MockChannel)
     {
         Channels.Remove(child as MockChannel);
     }
 }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
            }
        }
Exemple #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);
            }
        }
Exemple #8
0
 public MockSubscriptionInfo(EtpVersion version, MockObject mockObject, Guid requestUuid)
 {
     RequestUuid       = requestUuid;
     IncludeObjectData = true;
     Context           = new MockGraphContext(mockObject.Uri(version));
 }