예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExternalProperties" /> class from the specified instance.
        /// </summary>
        /// <param name="other">
        /// The instance from which the new instance is to be initialized.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Thrown if <paramref name="other" /> is null.
        /// </exception>
        public ExternalProperties(ExternalProperties other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Init(other.Schema, other.Version, other.Guid, other.RunGuid, other.Conversion, other.Graphs, other.ExternalizedProperties, other.Artifacts, other.Invocations, other.LogicalLocations, other.ThreadFlowLocations, other.Results, other.Taxonomies, other.Driver, other.Extensions, other.Policies, other.Translations, other.Addresses, other.WebRequests, other.WebResponses, other.Properties);
        }
예제 #2
0
 public bool ValueEquals(ExternalProperties other) => ValueComparer.Equals(this, other);
예제 #3
0
        public virtual ExternalProperties VisitExternalProperties(ExternalProperties node)
        {
            if (node != null)
            {
                node.Conversion             = VisitNullChecked(node.Conversion);
                node.ExternalizedProperties = VisitNullChecked(node.ExternalizedProperties);
                if (node.Artifacts != null)
                {
                    for (int index_0 = 0; index_0 < node.Artifacts.Count; ++index_0)
                    {
                        node.Artifacts[index_0] = VisitNullChecked(node.Artifacts[index_0]);
                    }
                }

                if (node.Invocations != null)
                {
                    for (int index_0 = 0; index_0 < node.Invocations.Count; ++index_0)
                    {
                        node.Invocations[index_0] = VisitNullChecked(node.Invocations[index_0]);
                    }
                }

                if (node.LogicalLocations != null)
                {
                    for (int index_0 = 0; index_0 < node.LogicalLocations.Count; ++index_0)
                    {
                        node.LogicalLocations[index_0] = VisitNullChecked(node.LogicalLocations[index_0]);
                    }
                }

                if (node.ThreadFlowLocations != null)
                {
                    for (int index_0 = 0; index_0 < node.ThreadFlowLocations.Count; ++index_0)
                    {
                        node.ThreadFlowLocations[index_0] = VisitNullChecked(node.ThreadFlowLocations[index_0]);
                    }
                }

                if (node.Results != null)
                {
                    for (int index_0 = 0; index_0 < node.Results.Count; ++index_0)
                    {
                        node.Results[index_0] = VisitNullChecked(node.Results[index_0]);
                    }
                }

                if (node.Taxonomies != null)
                {
                    for (int index_0 = 0; index_0 < node.Taxonomies.Count; ++index_0)
                    {
                        node.Taxonomies[index_0] = VisitNullChecked(node.Taxonomies[index_0]);
                    }
                }

                node.Driver = VisitNullChecked(node.Driver);
                if (node.Extensions != null)
                {
                    for (int index_0 = 0; index_0 < node.Extensions.Count; ++index_0)
                    {
                        node.Extensions[index_0] = VisitNullChecked(node.Extensions[index_0]);
                    }
                }
            }

            return(node);
        }