2 instantiations of DetectionResult
Aspire.TypeSystem (2)
LanguageModels.cs (2)
50public static DetectionResult NotFound => new() { IsValid = false }; 55public static DetectionResult Found(string language, string appHostFile) => new()
33 references to DetectionResult
Aspire.Hosting.CodeGeneration.Go (4)
GoLanguageSupport.cs (4)
110public DetectionResult Detect(string directoryPath) 115return DetectionResult.NotFound; 121return DetectionResult.NotFound; 124return DetectionResult.Found(LanguageId, "apphost.go");
Aspire.Hosting.CodeGeneration.Java (3)
JavaLanguageSupport.cs (3)
118public DetectionResult Detect(string directoryPath) 128return DetectionResult.Found(LanguageId, relativePath); 132return DetectionResult.NotFound;
Aspire.Hosting.CodeGeneration.Java.Tests (2)
JavaLanguageSupportDetectionTests.cs (2)
30var result = new JavaLanguageSupport().Detect(workspace.Path); 59var result = new JavaLanguageSupport().Detect(workspace.Path);
Aspire.Hosting.CodeGeneration.Python (7)
PythonLanguageSupport.cs (7)
136/// A <see cref="DetectionResult"/> with <see cref="DetectionResult.Found"/> if <c>apphost.py</c> 138/// otherwise <see cref="DetectionResult.NotFound"/>. 140public DetectionResult Detect(string directoryPath) 145return DetectionResult.NotFound; 153return DetectionResult.NotFound; 156return DetectionResult.Found(LanguageId, "apphost.py");
Aspire.Hosting.CodeGeneration.Rust (4)
RustLanguageSupport.cs (4)
114public DetectionResult Detect(string directoryPath) 119return DetectionResult.NotFound; 125return DetectionResult.NotFound; 128return DetectionResult.Found(LanguageId, AppHostFileName);
Aspire.Hosting.CodeGeneration.Rust.Tests (3)
RustLanguageSupportTests.cs (3)
45var result = _languageSupport.Detect(workspace.Path); 60var result = _languageSupport.Detect(workspace.Path); 72var result = _languageSupport.Detect(workspace.Path);
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
224public DetectionResult Detect(string directoryPath) 232return DetectionResult.NotFound; 239return DetectionResult.NotFound; 245return DetectionResult.Found(LanguageId, appHostFileName);
Aspire.Hosting.RemoteHost (3)
Language\LanguageService.cs (3)
87public DetectionResult DetectAppHostType(string directoryPath) 98var result = languageSupport.Detect(directoryPath); 110return DetectionResult.NotFound;
Aspire.TypeSystem (3)
ILanguageSupport.cs (1)
45DetectionResult Detect(string directoryPath);
LanguageModels.cs (2)
50public static DetectionResult NotFound => new() { IsValid = false }; 55public static DetectionResult Found(string language, string appHostFile) => new()