public override bool IsCombinableWith(AbstractSegmentData otherData)
        {
            var otherTypedSegment = otherData as MessageBrokerSegmentData;

            if (otherTypedSegment == null)
            {
                return(false);
            }

            if (!Vendor.Equals(otherTypedSegment.Vendor))
            {
                return(false);
            }

            if (!Destination.Equals(otherTypedSegment.Destination))
            {
                return(false);
            }

            if (DestinationType != otherTypedSegment.DestinationType)
            {
                return(false);
            }

            if (Action != otherTypedSegment.Action)
            {
                return(false);
            }

            return(true);
        }
Example #2
0
        public override bool IsCombinableWith(AbstractSegmentData otherSegment)
        {
            var otherTypedSegment = otherSegment as DatastoreSegmentData;

            if (otherTypedSegment == null)
            {
                return(false);
            }

            if (Operation != otherTypedSegment.Operation)
            {
                return(false);
            }

            if (DatastoreVendorName != otherTypedSegment.DatastoreVendorName)
            {
                return(false);
            }

            if (Model != otherTypedSegment.Model)
            {
                return(false);
            }

            return(true);
        }
        public override bool IsCombinableWith(AbstractSegmentData otherData)
        {
            var otherTypedSegment = otherData as CustomSegmentData;

            if (otherTypedSegment == null)
            {
                return(false);
            }

            if (Name != otherTypedSegment.Name)
            {
                return(false);
            }

            return(true);
        }
Example #4
0
        public override bool IsCombinableWith(AbstractSegmentData otherData)
        {
            var otherTypedSegment = otherData as MethodSegmentData;

            if (otherTypedSegment == null)
            {
                return(false);
            }

            if (Type != otherTypedSegment.Type)
            {
                return(false);
            }

            if (Method != otherTypedSegment.Method)
            {
                return(false);
            }

            return(true);
        }
Example #5
0
 public abstract bool IsCombinableWith(AbstractSegmentData otherData);