3 instantiations of AtsDiagnostic
Aspire.Hosting (3)
Ats\AtsCapabilityInfo.cs (3)
129new() { Severity = AtsDiagnosticSeverity.Error, Message = message, Location = location }; 135new() { Severity = AtsDiagnosticSeverity.Warning, Message = message, Location = location }; 141new() { Severity = AtsDiagnosticSeverity.Info, Message = message, Location = location };
25 references to AtsDiagnostic
Aspire.Hosting (22)
Ats\AtsCapabilityInfo.cs (3)
128public static AtsDiagnostic Error(string message, string? location = null) => 134public static AtsDiagnostic Warning(string message, string? location = null) => 140public static AtsDiagnostic Info(string message, string? location = null) =>
Ats\AtsCapabilityScanner.cs (18)
35public List<AtsDiagnostic> Diagnostics { get; init; } = []; 118var allDiagnostics = new List<AtsDiagnostic>(); 137allDiagnostics.Add(AtsDiagnostic.Error( 254var diagnostics = new List<AtsDiagnostic>(); 387var capability = CreateCapabilityInfo(method, exportAttr, assemblyName, out var capabilityDiagnostic); 401diagnostics.Add(AtsDiagnostic.Info( 414diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{type.FullName}.{method.Name}")); 618List<AtsDiagnostic> diagnostics) 627diagnostics.Add(AtsDiagnostic.Warning( 831private static void FilterMethodNameCollisions(List<AtsCapabilityInfo> capabilities, List<AtsDiagnostic> diagnostics) 884diagnostics.Add(AtsDiagnostic.Warning( 992public List<AtsDiagnostic> Diagnostics { get; init; } = []; 1010var diagnostics = new List<AtsDiagnostic>(); 1224diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{fullName}.{property.Name}")); 1376diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{contextType.FullName}.{method.Name}")); 1393out AtsDiagnostic? diagnostic) 1402diagnostic = AtsDiagnostic.Warning( 1459diagnostic = AtsDiagnostic.Warning(
Ats\AtsContext.cs (1)
79public IReadOnlyList<AtsDiagnostic> Diagnostics { get; init; } = [];
Aspire.Hosting.RemoteHost (3)
Ats\CapabilityDispatcher.cs (1)
102foreach (var diagnostic in result.Diagnostics)
AtsContextFactory.cs (1)
36foreach (var diagnostic in result.Diagnostics)
CodeGeneration\CodeGenerationService.cs (1)
138private static DiagnosticResponse MapDiagnostic(AtsDiagnostic d) => new()