5 implementations of ICodeGenerator
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
36internal sealed class AtsGoCodeGenerator : ICodeGenerator
Aspire.Hosting.CodeGeneration.Java (1)
AtsJavaCodeGenerator.cs (1)
24internal sealed class AtsJavaCodeGenerator : ICodeGenerator
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
72internal sealed class AtsPythonCodeGenerator : ICodeGenerator
Aspire.Hosting.CodeGeneration.Rust (1)
AtsRustCodeGenerator.cs (1)
17internal sealed class AtsRustCodeGenerator : ICodeGenerator
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
99internal sealed class AtsTypeScriptCodeGenerator : ICodeGenerator
17 references to ICodeGenerator
Aspire.Hosting.RemoteHost (13)
CodeGeneration\CodeGenerationService.cs (2)
243var generator = _resolver.GetCodeGenerator(language); 315var generator = _resolver.GetCodeGenerator(language);
CodeGeneration\CodeGeneratorResolver.cs (11)
16private readonly Lazy<Dictionary<string, ICodeGenerator>> _generators; 36_generators = new Lazy<Dictionary<string, ICodeGenerator>>( 47public ICodeGenerator? GetCodeGenerator(string language) 49_generators.Value.TryGetValue(language, out var generator); 101private Dictionary<string, ICodeGenerator> DiscoverGenerators( 105var generators = new Dictionary<string, ICodeGenerator>(StringComparer.OrdinalIgnoreCase); 117typeof(ICodeGenerator).IsAssignableFrom(type)) 121var generator = (ICodeGenerator)ActivatorUtilities.CreateInstance(serviceProvider, type); 141nameof(ICodeGenerator), 144: "Verify the assembly contains a non-abstract type that implements " + typeof(ICodeGenerator).FullName + ".");
Aspire.Hosting.RemoteHost.Tests (1)
CodeGenerationResolverTests.cs (1)
52var generator = resolver.GetCodeGenerator("TypeScript");
Aspire.TypeSystem (3)
IApiReferenceExporter.cs (3)
9/// Optional companion to <see cref="ICodeGenerator"/> for languages that can describe their 14/// Code generation and API export answer different questions. <see cref="ICodeGenerator"/> produces 29/// <see cref="ICodeGenerator.Language"/> value of the generator that produces the same surface,