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)
109public DetectionResult Detect(string directoryPath) 114return DetectionResult.NotFound; 120return DetectionResult.NotFound; 123return DetectionResult.Found(LanguageId, "apphost.go");
Aspire.Hosting.CodeGeneration.Java (3)
JavaLanguageSupport.cs (3)
93public DetectionResult Detect(string directoryPath) 98return DetectionResult.NotFound; 101return DetectionResult.Found(LanguageId, "AppHost.java");
Aspire.Hosting.CodeGeneration.Python (4)
PythonLanguageSupport.cs (4)
121public DetectionResult Detect(string directoryPath) 126return DetectionResult.NotFound; 132return DetectionResult.NotFound; 135return DetectionResult.Found(LanguageId, "apphost.py");
Aspire.Hosting.CodeGeneration.Rust (4)
RustLanguageSupport.cs (4)
108public DetectionResult Detect(string directoryPath) 113return DetectionResult.NotFound; 119return DetectionResult.NotFound; 122return DetectionResult.Found(LanguageId, "apphost.rs");
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
126public DetectionResult Detect(string directoryPath) 132return DetectionResult.NotFound; 139return DetectionResult.NotFound; 145return 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;