public void MergeFrom(VSIBoundBreakpointsData other)
        {
            if (other.NumPendingBreakpoints.HasValue)
            {
                NumPendingBreakpoints = other.NumPendingBreakpoints;
            }

            if (other.NumBoundBreakpoints.HasValue)
            {
                NumBoundBreakpoints = other.NumBoundBreakpoints;
            }
        }
예제 #2
0
        public void RecordExternalDurationWithDetails()
        {
            var bbData = new VSIBoundBreakpointsData {
                NumPendingBreakpoints = 1
            };

            actionRecorder.RecordToolAction(MetricActionType, timer,
                                            new DeveloperLogEvent {
                BoundBreakpointsData = bbData
            });

            logEvent.StatusCode           = DeveloperEventStatus.Types.Code.Success;
            logEvent.LatencyType          = DeveloperLogEvent.Types.LatencyType.LatencyTool;
            logEvent.LatencyMilliseconds  = ElapsedMilliseconds;
            logEvent.BoundBreakpointsData = bbData;
            metrics.Received(1).RecordEvent(EventType, logEvent);
        }
        public bool Equals(VSIBoundBreakpointsData other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(other, this))
            {
                return(true);
            }

            if (other.NumPendingBreakpoints != NumPendingBreakpoints)
            {
                return(false);
            }

            if (other.NumBoundBreakpoints != NumBoundBreakpoints)
            {
                return(false);
            }

            return(true);
        }