Beispiel #1
0
        public void MergeFrom(CopyBinaryData other)
        {
            if (other.CopyAttempted.HasValue)
            {
                CopyAttempted = other.CopyAttempted;
            }

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

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

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

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

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

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

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

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

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

            if (other.BinaryDiffDecodingLatencyMs.HasValue)
            {
                BinaryDiffDecodingLatencyMs = other.BinaryDiffDecodingLatencyMs;
            }
        }
Beispiel #2
0
        public bool Equals(CopyBinaryData other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

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

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

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

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

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

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

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

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

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

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

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

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

            return(true);
        }
        public void MergeFrom(DeveloperLogEvent other)
        {
            if (other == null)
            {
                return;
            }

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

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

            if (other.OrganizationId != null)
            {
                OrganizationId = other.OrganizationId;
            }

            if (other.ProjectId != null)
            {
                ProjectId = other.ProjectId;
            }

            if (other.VisualStudioVersion != null)
            {
                VisualStudioVersion = other.VisualStudioVersion;
            }

            if (other.SdkVersion != null)
            {
                SdkVersion = other.SdkVersion;
            }

            if (other.VsExtensionVersion != null)
            {
                VsExtensionVersion = other.VsExtensionVersion;
            }

            if (other.VsSessionIdStr != null)
            {
                VsSessionIdStr = other.VsSessionIdStr;
            }

            if (other.DebugSessionIdStr != null)
            {
                DebugSessionIdStr = other.DebugSessionIdStr;
            }

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

            if (other.GrpcErrorDetails != null)
            {
                if (GrpcErrorDetails == null)
                {
                    GrpcErrorDetails = new GrpcServiceCallDetails();
                }

                GrpcErrorDetails.MergeFrom(other.GrpcErrorDetails);
            }

            if (other.ExternalToolError != null)
            {
                if (ExternalToolError == null)
                {
                    ExternalToolError = new Types.ExternalToolError();
                }

                ExternalToolError.MergeFrom(other.ExternalToolError);
            }

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

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

            if (other.CommandData != null)
            {
                if (CommandData == null)
                {
                    CommandData = new Types.CommandData();
                }

                CommandData.MergeFrom(other.CommandData);
            }

            if (other.GameletData != null)
            {
                if (GameletData == null)
                {
                    GameletData = new Types.GameletData();
                }

                GameletData.MergeFrom(other.GameletData);
            }

            if (other.GrpcCallDetails != null)
            {
                if (GrpcCallDetails == null)
                {
                    GrpcCallDetails = new List <GrpcServiceCallDetails>();
                }

                GrpcCallDetails.AddRange(other.GrpcCallDetails);
            }

            if (other.LoadSymbolData != null)
            {
                if (LoadSymbolData == null)
                {
                    LoadSymbolData = new Types.LoadSymbolData();
                }

                LoadSymbolData.MergeFrom(other.LoadSymbolData);
            }

            if (other.DebugPreflightCheckData != null)
            {
                if (DebugPreflightCheckData == null)
                {
                    DebugPreflightCheckData = new DebugPreflightCheckData();
                }

                DebugPreflightCheckData.MergeFrom(other.DebugPreflightCheckData);
            }

            if (other.DebugSessionEndData != null)
            {
                if (DebugSessionEndData == null)
                {
                    DebugSessionEndData = new DebugSessionEndData();
                }

                DebugSessionEndData.MergeFrom(other.DebugSessionEndData);
            }

            if (other.DebugEventBatch != null)
            {
                if (DebugEventBatch == null)
                {
                    DebugEventBatch = new VSIDebugEventBatch();
                }

                DebugEventBatch.MergeFrom(other.DebugEventBatch);
            }

            if (other.DebugParameters != null)
            {
                if (DebugParameters == null)
                {
                    DebugParameters = new VSIDebugParameters();
                }

                DebugParameters.MergeFrom(other.DebugParameters);
            }

            if (other.CopyExecutable != null)
            {
                if (CopyExecutable == null)
                {
                    CopyExecutable = new CopyBinaryData();
                }

                CopyExecutable.MergeFrom(other.CopyExecutable);
            }

            if (other.CopyLldbServer != null)
            {
                if (CopyLldbServer == null)
                {
                    CopyLldbServer = new CopyBinaryData();
                }

                CopyLldbServer.MergeFrom(other.CopyLldbServer);
            }

            if (other.CustomCommand != null)
            {
                if (CustomCommand == null)
                {
                    CustomCommand = new CustomCommandData();
                }

                CustomCommand.MergeFrom(other.CustomCommand);
            }

            if (other.ExceptionsData != null)
            {
                if (ExceptionsData == null)
                {
                    ExceptionsData = new List <VSIExceptionData>();
                }

                ExceptionsData.AddRange(other.ExceptionsData);
            }

            if (other.BoundBreakpointsData != null)
            {
                if (BoundBreakpointsData == null)
                {
                    BoundBreakpointsData = new VSIBoundBreakpointsData();
                }

                BoundBreakpointsData.MergeFrom(other.BoundBreakpointsData);
            }

            if (other.GameLaunchData != null)
            {
                if (GameLaunchData == null)
                {
                    GameLaunchData = new GameLaunchData();
                }

                GameLaunchData.MergeFrom(other.GameLaunchData);
            }

            if (other.DebugExpressionEvaluationBatch != null)
            {
                if (DebugExpressionEvaluationBatch == null)
                {
                    DebugExpressionEvaluationBatch = new VSIDebugExpressionEvaluationBatch();
                }

                DebugExpressionEvaluationBatch.MergeFrom(other.DebugExpressionEvaluationBatch);
            }
        }