public virtual ReportingConfiguration VisitReportingConfiguration(ReportingConfiguration node)
        {
            if (node != null)
            {
            }

            return(node);
        }
Пример #2
0
        private void Init(string id, IEnumerable <string> deprecatedIds, Message name, Message shortDescription, Message fullDescription, IDictionary <string, MultiformatMessageString> messageStrings, ReportingConfiguration defaultConfiguration, Uri helpUri, Message help, IDictionary <string, SerializedPropertyInfo> properties)
        {
            Id = id;
            if (deprecatedIds != null)
            {
                var destination_0 = new List <string>();
                foreach (var value_0 in deprecatedIds)
                {
                    destination_0.Add(value_0);
                }

                DeprecatedIds = destination_0;
            }

            if (name != null)
            {
                Name = new Message(name);
            }

            if (shortDescription != null)
            {
                ShortDescription = new Message(shortDescription);
            }

            if (fullDescription != null)
            {
                FullDescription = new Message(fullDescription);
            }

            if (messageStrings != null)
            {
                MessageStrings = new Dictionary <string, MultiformatMessageString>();
                foreach (var value_1 in messageStrings)
                {
                    MessageStrings.Add(value_1.Key, new MultiformatMessageString(value_1.Value));
                }
            }

            if (defaultConfiguration != null)
            {
                DefaultConfiguration = new ReportingConfiguration(defaultConfiguration);
            }

            if (helpUri != null)
            {
                HelpUri = new Uri(helpUri.OriginalString, helpUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
            }

            if (help != null)
            {
                Help = new Message(help);
            }

            if (properties != null)
            {
                Properties = new Dictionary <string, SerializedPropertyInfo>(properties);
            }
        }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ReportingConfiguration" /> 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 ReportingConfiguration(ReportingConfiguration other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Init(other.Enabled, other.Level, other.Rank, other.Parameters, other.Properties);
        }
Пример #4
0
        private void Init(ReportingConfiguration configuration, int notificationIndex, int ruleIndex, int extensionIndex, IDictionary <string, SerializedPropertyInfo> properties)
        {
            if (configuration != null)
            {
                Configuration = new ReportingConfiguration(configuration);
            }

            NotificationIndex = notificationIndex;
            RuleIndex         = ruleIndex;
            ExtensionIndex    = extensionIndex;
            if (properties != null)
            {
                Properties = new Dictionary <string, SerializedPropertyInfo>(properties);
            }
        }
Пример #5
0
        protected virtual void Init(ReportingConfiguration configuration, ReportingDescriptorReference descriptor, IDictionary <string, SerializedPropertyInfo> properties)
        {
            if (configuration != null)
            {
                Configuration = new ReportingConfiguration(configuration);
            }

            if (descriptor != null)
            {
                Descriptor = new ReportingDescriptorReference(descriptor);
            }

            if (properties != null)
            {
                Properties = new Dictionary <string, SerializedPropertyInfo>(properties);
            }
        }
Пример #6
0
 public bool ValueEquals(ReportingConfiguration other) => ValueComparer.Equals(this, other);
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigurationOverride" /> class from the supplied values.
 /// </summary>
 /// <param name="configuration">
 /// An initialization value for the <see cref="P:Configuration" /> property.
 /// </param>
 /// <param name="descriptor">
 /// An initialization value for the <see cref="P:Descriptor" /> property.
 /// </param>
 /// <param name="properties">
 /// An initialization value for the <see cref="P:Properties" /> property.
 /// </param>
 public ConfigurationOverride(ReportingConfiguration configuration, ReportingDescriptorReference descriptor, IDictionary <string, SerializedPropertyInfo> properties)
 {
     Init(configuration, descriptor, properties);
 }
Пример #8
0
        private void Init(string id, string guid, string name, IEnumerable <string> deprecatedIds, MultiformatMessageString shortDescription, MultiformatMessageString fullDescription, IDictionary <string, MultiformatMessageString> messageStrings, ReportingConfiguration defaultConfiguration, Uri helpUri, MultiformatMessageString help, IEnumerable <ReportingDescriptorReference> taxonomyReferences, IEnumerable <ReportingDescriptorReference> optionalTaxonomyReferences, IDictionary <string, SerializedPropertyInfo> properties)
        {
            Id   = id;
            Guid = guid;
            Name = name;
            if (deprecatedIds != null)
            {
                var destination_0 = new List <string>();
                foreach (var value_0 in deprecatedIds)
                {
                    destination_0.Add(value_0);
                }

                DeprecatedIds = destination_0;
            }

            if (shortDescription != null)
            {
                ShortDescription = new MultiformatMessageString(shortDescription);
            }

            if (fullDescription != null)
            {
                FullDescription = new MultiformatMessageString(fullDescription);
            }

            if (messageStrings != null)
            {
                MessageStrings = new Dictionary <string, MultiformatMessageString>();
                foreach (var value_1 in messageStrings)
                {
                    MessageStrings.Add(value_1.Key, new MultiformatMessageString(value_1.Value));
                }
            }

            if (defaultConfiguration != null)
            {
                DefaultConfiguration = new ReportingConfiguration(defaultConfiguration);
            }

            if (helpUri != null)
            {
                HelpUri = new Uri(helpUri.OriginalString, helpUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
            }

            if (help != null)
            {
                Help = new MultiformatMessageString(help);
            }

            if (taxonomyReferences != null)
            {
                var destination_1 = new List <ReportingDescriptorReference>();
                foreach (var value_2 in taxonomyReferences)
                {
                    if (value_2 == null)
                    {
                        destination_1.Add(null);
                    }
                    else
                    {
                        destination_1.Add(new ReportingDescriptorReference(value_2));
                    }
                }

                TaxonomyReferences = destination_1;
            }

            if (optionalTaxonomyReferences != null)
            {
                var destination_2 = new List <ReportingDescriptorReference>();
                foreach (var value_3 in optionalTaxonomyReferences)
                {
                    if (value_3 == null)
                    {
                        destination_2.Add(null);
                    }
                    else
                    {
                        destination_2.Add(new ReportingDescriptorReference(value_3));
                    }
                }

                OptionalTaxonomyReferences = destination_2;
            }

            if (properties != null)
            {
                Properties = new Dictionary <string, SerializedPropertyInfo>(properties);
            }
        }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportingDescriptor" /> class from the supplied values.
 /// </summary>
 /// <param name="id">
 /// An initialization value for the <see cref="P:Id" /> property.
 /// </param>
 /// <param name="guid">
 /// An initialization value for the <see cref="P:Guid" /> property.
 /// </param>
 /// <param name="deprecatedIds">
 /// An initialization value for the <see cref="P:DeprecatedIds" /> property.
 /// </param>
 /// <param name="name">
 /// An initialization value for the <see cref="P:Name" /> property.
 /// </param>
 /// <param name="shortDescription">
 /// An initialization value for the <see cref="P:ShortDescription" /> property.
 /// </param>
 /// <param name="fullDescription">
 /// An initialization value for the <see cref="P:FullDescription" /> property.
 /// </param>
 /// <param name="messageStrings">
 /// An initialization value for the <see cref="P:MessageStrings" /> property.
 /// </param>
 /// <param name="defaultConfiguration">
 /// An initialization value for the <see cref="P:DefaultConfiguration" /> property.
 /// </param>
 /// <param name="helpUri">
 /// An initialization value for the <see cref="P:HelpUri" /> property.
 /// </param>
 /// <param name="help">
 /// An initialization value for the <see cref="P:Help" /> property.
 /// </param>
 /// <param name="taxonomyReferences">
 /// An initialization value for the <see cref="P:TaxonomyReferences" /> property.
 /// </param>
 /// <param name="optionalTaxonomyReferences">
 /// An initialization value for the <see cref="P:OptionalTaxonomyReferences" /> property.
 /// </param>
 /// <param name="properties">
 /// An initialization value for the <see cref="P:Properties" /> property.
 /// </param>
 public ReportingDescriptor(string id, string guid, string name, IEnumerable <string> deprecatedIds, MultiformatMessageString shortDescription, MultiformatMessageString fullDescription, IDictionary <string, MultiformatMessageString> messageStrings, ReportingConfiguration defaultConfiguration, Uri helpUri, MultiformatMessageString help, IEnumerable <ReportingDescriptorReference> taxonomyReferences, IEnumerable <ReportingDescriptorReference> optionalTaxonomyReferences, IDictionary <string, SerializedPropertyInfo> properties)
 {
     Init(id, guid, name, deprecatedIds, shortDescription, fullDescription, messageStrings, defaultConfiguration, helpUri, help, taxonomyReferences, optionalTaxonomyReferences, properties);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportingDescriptor" /> class from the supplied values.
 /// </summary>
 /// <param name="id">
 /// An initialization value for the <see cref="P:Id" /> property.
 /// </param>
 /// <param name="deprecatedIds">
 /// An initialization value for the <see cref="P:DeprecatedIds" /> property.
 /// </param>
 /// <param name="guid">
 /// An initialization value for the <see cref="P:Guid" /> property.
 /// </param>
 /// <param name="deprecatedGuids">
 /// An initialization value for the <see cref="P:DeprecatedGuids" /> property.
 /// </param>
 /// <param name="name">
 /// An initialization value for the <see cref="P:Name" /> property.
 /// </param>
 /// <param name="deprecatedNames">
 /// An initialization value for the <see cref="P:DeprecatedNames" /> property.
 /// </param>
 /// <param name="shortDescription">
 /// An initialization value for the <see cref="P:ShortDescription" /> property.
 /// </param>
 /// <param name="fullDescription">
 /// An initialization value for the <see cref="P:FullDescription" /> property.
 /// </param>
 /// <param name="messageStrings">
 /// An initialization value for the <see cref="P:MessageStrings" /> property.
 /// </param>
 /// <param name="defaultConfiguration">
 /// An initialization value for the <see cref="P:DefaultConfiguration" /> property.
 /// </param>
 /// <param name="helpUri">
 /// An initialization value for the <see cref="P:HelpUri" /> property.
 /// </param>
 /// <param name="help">
 /// An initialization value for the <see cref="P:Help" /> property.
 /// </param>
 /// <param name="relationships">
 /// An initialization value for the <see cref="P:Relationships" /> property.
 /// </param>
 /// <param name="properties">
 /// An initialization value for the <see cref="P:Properties" /> property.
 /// </param>
 public ReportingDescriptor(string id, IEnumerable <string> deprecatedIds, string guid, IEnumerable <string> deprecatedGuids, string name, IEnumerable <string> deprecatedNames, MultiformatMessageString shortDescription, MultiformatMessageString fullDescription, IDictionary <string, MultiformatMessageString> messageStrings, ReportingConfiguration defaultConfiguration, Uri helpUri, MultiformatMessageString help, IEnumerable <ReportingDescriptorRelationship> relationships, IDictionary <string, SerializedPropertyInfo> properties)
 {
     Init(id, deprecatedIds, guid, deprecatedGuids, name, deprecatedNames, shortDescription, fullDescription, messageStrings, defaultConfiguration, helpUri, help, relationships, properties);
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportingConfigurationOverride" /> class from the supplied values.
 /// </summary>
 /// <param name="configuration">
 /// An initialization value for the <see cref="P:Configuration" /> property.
 /// </param>
 /// <param name="notificationIndex">
 /// An initialization value for the <see cref="P:NotificationIndex" /> property.
 /// </param>
 /// <param name="ruleIndex">
 /// An initialization value for the <see cref="P:RuleIndex" /> property.
 /// </param>
 /// <param name="extensionIndex">
 /// An initialization value for the <see cref="P:ExtensionIndex" /> property.
 /// </param>
 /// <param name="properties">
 /// An initialization value for the <see cref="P:Properties" /> property.
 /// </param>
 public ReportingConfigurationOverride(ReportingConfiguration configuration, int notificationIndex, int ruleIndex, int extensionIndex, IDictionary <string, SerializedPropertyInfo> properties)
 {
     Init(configuration, notificationIndex, ruleIndex, extensionIndex, properties);
 }
Пример #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportingDescriptor" /> class from the supplied values.
 /// </summary>
 /// <param name="id">
 /// An initialization value for the <see cref="P:Id" /> property.
 /// </param>
 /// <param name="deprecatedIds">
 /// An initialization value for the <see cref="P:DeprecatedIds" /> property.
 /// </param>
 /// <param name="name">
 /// An initialization value for the <see cref="P:Name" /> property.
 /// </param>
 /// <param name="shortDescription">
 /// An initialization value for the <see cref="P:ShortDescription" /> property.
 /// </param>
 /// <param name="fullDescription">
 /// An initialization value for the <see cref="P:FullDescription" /> property.
 /// </param>
 /// <param name="messageStrings">
 /// An initialization value for the <see cref="P:MessageStrings" /> property.
 /// </param>
 /// <param name="defaultConfiguration">
 /// An initialization value for the <see cref="P:DefaultConfiguration" /> property.
 /// </param>
 /// <param name="helpUri">
 /// An initialization value for the <see cref="P:HelpUri" /> property.
 /// </param>
 /// <param name="help">
 /// An initialization value for the <see cref="P:Help" /> property.
 /// </param>
 /// <param name="properties">
 /// An initialization value for the <see cref="P:Properties" /> property.
 /// </param>
 public ReportingDescriptor(string id, IEnumerable <string> deprecatedIds, Message name, Message shortDescription, Message fullDescription, IDictionary <string, MultiformatMessageString> messageStrings, ReportingConfiguration defaultConfiguration, Uri helpUri, Message help, IDictionary <string, SerializedPropertyInfo> properties)
 {
     Init(id, deprecatedIds, name, shortDescription, fullDescription, messageStrings, defaultConfiguration, helpUri, help, properties);
 }