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); }
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); }
void RecordData(DebugPreflightCheckData data) { action.UpdateEvent( new DeveloperLogEvent() { DebugPreflightCheckData = data }); }
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; } }