Exemplo n.º 1
0
 public DiagnosticsListMessage(IEnumerable <DiagnosticMessage> diagnostics, FrameworkData frameworkData) :
     this(diagnostics.Select(msg => new DiagnosticMessageView(msg)).ToList(), frameworkData)
 {
     if (diagnostics == null)
     {
         throw new ArgumentNullException(nameof(diagnostics));
     }
 }
Exemplo n.º 2
0
 public DiagnosticsListMessage(IEnumerable<DiagnosticMessage> diagnostics, FrameworkData frameworkData) :
         this(diagnostics.Select(msg => new DiagnosticMessageView(msg)).ToList(), frameworkData)
 {
     if (diagnostics == null)
     {
         throw new ArgumentNullException(nameof(diagnostics));
     }
 }
Exemplo n.º 3
0
        public DiagnosticsListMessage(IEnumerable <DiagnosticMessageView> diagnostics, FrameworkData frameworkData)
        {
            if (diagnostics == null)
            {
                throw new ArgumentNullException(nameof(diagnostics));
            }

            Diagnostics = diagnostics;
            Errors      = diagnostics.Where(msg => msg.Severity == DiagnosticMessageSeverity.Error).ToList();
            Warnings    = diagnostics.Where(msg => msg.Severity == DiagnosticMessageSeverity.Warning).ToList();
            Framework   = frameworkData;
        }
Exemplo n.º 4
0
        public DiagnosticsListMessage(IEnumerable<DiagnosticMessageView> diagnostics, FrameworkData frameworkData)
        {
            if (diagnostics == null)
            {
                throw new ArgumentNullException(nameof(diagnostics));
            }

            Diagnostics = diagnostics;
            Errors = diagnostics.Where(msg => msg.Severity == DiagnosticMessageSeverity.Error).ToList();
            Warnings = diagnostics.Where(msg => msg.Severity == DiagnosticMessageSeverity.Warning).ToList();
            Framework = frameworkData;
        }