コード例 #1
0
        public bool Equals(DebugPreflightCheckData other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

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

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

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

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

            return(true);
        }
コード例 #2
0
            public bool RemoteBuildIdError(BinaryFileUtilException e)
            {
                var data = new DebugPreflightCheckData();

                if (e is InvalidBuildIdException)
                {
                    data.RemoteBuildIdCheckResult =
                        DebugPreflightCheckData.Types.RemoteBuildIdCheckResult
                        .InvalidRemoteBuildId;
                }
                else if (e.InnerException is ProcessExecutionException)
                {
                    data.RemoteBuildIdCheckResult =
                        DebugPreflightCheckData.Types.RemoteBuildIdCheckResult
                        .RemoteBinaryError;
                }
                else if (e.InnerException is ProcessException)
                {
                    data.RemoteBuildIdCheckResult =
                        DebugPreflightCheckData.Types.RemoteBuildIdCheckResult
                        .RemoteCommandError;
                }
                RecordData(data);
                return(false);
            }
コード例 #3
0
 void RecordData(DebugPreflightCheckData data)
 {
     action.UpdateEvent(
         new DeveloperLogEvent()
     {
         DebugPreflightCheckData = data
     });
 }
コード例 #4
0
        public void MergeFrom(DebugPreflightCheckData other)
        {
            if (other.CheckType.HasValue)
            {
                CheckType = other.CheckType;
            }

            if (other.RemoteBuildIdCheckResult.HasValue)
            {
                RemoteBuildIdCheckResult = other.RemoteBuildIdCheckResult;
            }

            if (other.LocalBinarySearchResult.HasValue)
            {
                LocalBinarySearchResult = other.LocalBinarySearchResult;
            }
        }