private static DiagnosticSeverity ToDiagnosticSeverity(ClientMessageSeverity severity) { switch (severity) { case ClientMessageSeverity.Error: case ClientMessageSeverity.Fatal: return(DiagnosticSeverity.Error); case ClientMessageSeverity.ImportantInfo: case ClientMessageSeverity.Info: return(DiagnosticSeverity.Info); case ClientMessageSeverity.Warning: return(DiagnosticSeverity.Warning); default: // May be Hidden too. return(DiagnosticSeverity.Info); } }
private static DiagnosticSeverity ToDiagnosticSeverity(ClientMessageSeverity severity) { switch (severity) { case ClientMessageSeverity.Error: case ClientMessageSeverity.Fatal: return DiagnosticSeverity.Error; case ClientMessageSeverity.ImportantInfo: case ClientMessageSeverity.Info: return DiagnosticSeverity.Info; case ClientMessageSeverity.Warning: return DiagnosticSeverity.Warning; default: // May be Hidden too. return DiagnosticSeverity.Info; } }