2 instantiations of DetectionResult
Aspire.Hosting (2)
Ats\LanguageModels.cs (2)
54public static DetectionResult NotFound => new() { IsValid = false }; 59public static DetectionResult Found(string language, string appHostFile) => new()
25 references to DetectionResult
Aspire.Hosting (3)
Ats\ILanguageSupport.cs (1)
32DetectionResult Detect(string directoryPath);
Ats\LanguageModels.cs (2)
54public static DetectionResult NotFound => new() { IsValid = false }; 59public static DetectionResult Found(string language, string appHostFile) => new()
Aspire.Hosting.CodeGeneration.Go (4)
GoLanguageSupport.cs (4)
107public DetectionResult Detect(string directoryPath) 112return DetectionResult.NotFound; 118return DetectionResult.NotFound; 121return DetectionResult.Found(LanguageId, "apphost.go");
Aspire.Hosting.CodeGeneration.Java (3)
JavaLanguageSupport.cs (3)
91public DetectionResult Detect(string directoryPath) 96return DetectionResult.NotFound; 99return DetectionResult.Found(LanguageId, "AppHost.java");
Aspire.Hosting.CodeGeneration.Python (4)
PythonLanguageSupport.cs (4)
119public DetectionResult Detect(string directoryPath) 124return DetectionResult.NotFound; 130return DetectionResult.NotFound; 133return DetectionResult.Found(LanguageId, "apphost.py");
Aspire.Hosting.CodeGeneration.Rust (4)
RustLanguageSupport.cs (4)
106public DetectionResult Detect(string directoryPath) 111return DetectionResult.NotFound; 117return DetectionResult.NotFound; 120return DetectionResult.Found(LanguageId, "apphost.rs");
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
124public DetectionResult Detect(string directoryPath) 130return DetectionResult.NotFound; 137return DetectionResult.NotFound; 143return DetectionResult.Found(LanguageId, "apphost.ts");
aspire-server (3)
Language\LanguageService.cs (3)
72public DetectionResult DetectAppHostType(string directoryPath) 81var result = languageSupport.Detect(directoryPath); 90return DetectionResult.NotFound;