예제 #1
0
        public BaseNRefactoryIssueProvider(NRefactoryIssueProvider parentIssue, SubIssueAttribute subIssue)
        {
            this.parentIssue = parentIssue;
            this.subIssue    = subIssue;
            this.Title       = subIssue.Title;
            this.Description = subIssue.Description;

            DefaultSeverity = subIssue.HasOwnSeverity ? subIssue.Severity : parentIssue.DefaultSeverity;
            UpdateSeverity();
        }
		public BaseNRefactoryIssueProvider (NRefactoryIssueProvider parentIssue, SubIssueAttribute subIssue)
		{
			this.parentIssue = parentIssue;
			this.subIssue = subIssue;
			this.Title = subIssue.Title;
			this.Description = subIssue.Description;

			DefaultSeverity = subIssue.HasOwnSeverity ? subIssue.Severity : parentIssue.DefaultSeverity;
			UpdateSeverity ();
		}
        public BaseNRefactoryIssueProvider(NRefactoryIssueProvider parentIssue, SubIssueAttribute subIssue)
        {
            this.parentIssue = parentIssue;
            this.subIssue    = subIssue;
            this.Title       = subIssue.Title;
            this.Description = subIssue.Description;

            DefaultSeverity = subIssue.HasOwnSeverity ? subIssue.Severity : parentIssue.DefaultSeverity;
            UpdateSeverity();

            counter = InstrumentationService.CreateTimerCounter(IdString, "CodeIssueProvider run times");
        }
		public BaseNRefactoryIssueProvider (NRefactoryIssueProvider parentIssue, SubIssueAttribute subIssue)
		{
			this.parentIssue = parentIssue;
			this.subIssue = subIssue;
			this.Title = subIssue.Title;
			this.Description = subIssue.Description;

			DefaultSeverity = subIssue.Severity.HasValue ? subIssue.Severity.Value : parentIssue.DefaultSeverity;
			IsEnabledByDefault = subIssue.IsEnabledByDefault.HasValue ? subIssue.IsEnabledByDefault.Value : parentIssue.IsEnabledByDefault;
			UpdateSeverity ();

			counter = InstrumentationService.CreateTimerCounter (IdString, "CodeIssueProvider run times");
		}