3 instantiations of AtsDiagnostic
Aspire.TypeSystem (3)
AtsCapabilityInfo.cs (3)
123new() { Severity = AtsDiagnosticSeverity.Error, Message = message, Location = location }; 129new() { Severity = AtsDiagnosticSeverity.Warning, Message = message, Location = location }; 135new() { Severity = AtsDiagnosticSeverity.Info, Message = message, Location = location };
25 references to AtsDiagnostic
Aspire.Hosting.RemoteHost (21)
Ats\CapabilityDispatcher.cs (1)
101foreach (var diagnostic in result.Diagnostics)
AtsCapabilityScanner.cs (18)
35public List<AtsDiagnostic> Diagnostics { get; init; } = []; 126var allDiagnostics = new List<AtsDiagnostic>(); 145allDiagnostics.Add(AtsDiagnostic.Error( 265var diagnostics = new List<AtsDiagnostic>(); 398var capability = CreateCapabilityInfo(method, exportAttr, assemblyName, assemblyExportedTypeCache, out var capabilityDiagnostic); 412diagnostics.Add(AtsDiagnostic.Info( 425diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{type.FullName}.{method.Name}")); 629List<AtsDiagnostic> diagnostics) 638diagnostics.Add(AtsDiagnostic.Warning( 842private static void FilterMethodNameCollisions(List<AtsCapabilityInfo> capabilities, List<AtsDiagnostic> diagnostics) 895diagnostics.Add(AtsDiagnostic.Warning( 1011public List<AtsDiagnostic> Diagnostics { get; init; } = []; 1030var diagnostics = new List<AtsDiagnostic>(); 1244diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{fullName}.{property.Name}")); 1396diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{contextType.FullName}.{method.Name}")); 1414out AtsDiagnostic? diagnostic) 1423diagnostic = AtsDiagnostic.Warning( 1480diagnostic = AtsDiagnostic.Warning(
AtsContextFactory.cs (1)
36foreach (var diagnostic in result.Diagnostics)
CodeGeneration\CodeGenerationService.cs (1)
138private static DiagnosticResponse MapDiagnostic(AtsDiagnostic d) => new()
Aspire.TypeSystem (4)
AtsCapabilityInfo.cs (3)
122public static AtsDiagnostic Error(string message, string? location = null) => 128public static AtsDiagnostic Warning(string message, string? location = null) => 134public static AtsDiagnostic Info(string message, string? location = null) =>
AtsContext.cs (1)
77public IReadOnlyList<AtsDiagnostic> Diagnostics { get; init; } = [];