30 instantiations of AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Go.Tests (4)
AtsGoCodeGeneratorTests.cs (1)
1219new AtsDtoTypeInfo
AtsGoDerivedBuilderTests.cs (1)
542new AtsDtoTypeInfo
GoDocCommentTests.cs (1)
422new AtsDtoTypeInfo
GoGeneratorEscapingTests.cs (1)
144new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Java.Tests (5)
AtsJavaCodeGeneratorTests.cs (5)
3091new AtsDtoTypeInfo 3322new AtsDtoTypeInfo 3335new AtsDtoTypeInfo 3437new AtsDtoTypeInfo 3704new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
381new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
156new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
968var nullableNumberArrayDto = new AtsDtoTypeInfo
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
1210return new AtsDtoTypeInfo
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1210return new AtsDtoTypeInfo
Aspire.Hosting.RemoteHost.Tests (16)
AtsContextFilterTests.cs (4)
264var ownedDtoType = new AtsDtoTypeInfo 422var selectedDtoType = new AtsDtoTypeInfo 443var referencedCoreDtoType = new AtsDtoTypeInfo 475var exportedValueOnlyDtoType = new AtsDtoTypeInfo
AtsMarshallerTests.cs (11)
23new AtsDtoTypeInfo { TypeId = "test/TestDto", Name = "TestDto", ClrType = typeof(TestDto), Properties = [] }, 24new AtsDtoTypeInfo { TypeId = "test/TestDtoWithEnum", Name = "TestDtoWithEnum", ClrType = typeof(TestDtoWithEnum), Properties = [] }, 25new AtsDtoTypeInfo { TypeId = "test/TestDto", Name = "TestDto", ClrType = typeof(TestDto), Properties = [] }, 26new AtsDtoTypeInfo { TypeId = "test/SelfReferencingDto", Name = "SelfReferencingDto", ClrType = typeof(SelfReferencingDto), Properties = [] }, 27new AtsDtoTypeInfo { TypeId = "test/ParentDto", Name = "ParentDto", ClrType = typeof(ParentDto), Properties = [] }, 28new AtsDtoTypeInfo { TypeId = "test/ChildDto", Name = "ChildDto", ClrType = typeof(ChildDto), Properties = [] }, 29new AtsDtoTypeInfo { TypeId = "test/DtoWithJsonPropertyName", Name = "DtoWithJsonPropertyName", ClrType = typeof(DtoWithJsonPropertyName), Properties = [] }, 30new AtsDtoTypeInfo { TypeId = "test/DtoWithJsonIgnore", Name = "DtoWithJsonIgnore", ClrType = typeof(DtoWithJsonIgnore), Properties = [] }, 31new AtsDtoTypeInfo { TypeId = "test/DtoWithReadOnlyProperty", Name = "DtoWithReadOnlyProperty", ClrType = typeof(DtoWithReadOnlyProperty), Properties = [] }, 32new AtsDtoTypeInfo { TypeId = "test/DtoWithInitListProperties", Name = "DtoWithInitListProperties", ClrType = typeof(DtoWithInitListProperties), Properties = [] }, 33new AtsDtoTypeInfo { TypeId = "test/DtoWithTimeSpans", Name = "DtoWithTimeSpans", ClrType = typeof(DtoWithTimeSpans), Properties = [] },
CallbackProxyTests.cs (1)
475new() { TypeId = "test/TestCallbackDto", Name = "TestCallbackDto", ClrType = typeof(TestCallbackDto), Properties = [] }
95 references to AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Go (14)
AtsGoCodeGenerator.ApiProjection.cs (3)
289var dtosByName = new Dictionary<string, AtsDtoTypeInfo>(StringComparer.Ordinal); 290foreach (var dtoType in context.DtoTypes) 309else if (dtosByName.TryGetValue(type.Name, out var dtoType))
AtsGoCodeGenerator.cs (11)
171foreach (var dto in context.DtoTypes) 636foreach (var dto in context.DtoTypes) 783private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 795foreach (var dto in dtoTypes) 871IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 944IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 978IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 989AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 1019AtsDtoTypeInfo dtoInfo, 1020IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 2569foreach (var dto in context.DtoTypes)
Aspire.Hosting.CodeGeneration.Java (9)
AtsJavaCodeGenerator.cs (9)
598foreach (var dto in dtoTypes) 718private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 730foreach (var dto in dtoTypes) 809IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 836IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 870IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 881AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 895AtsDtoTypeInfo dtoInfo, 896IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById)
Aspire.Hosting.CodeGeneration.Python (8)
AtsPythonCodeGenerator.cs (8)
913private void GenerateDtoClasses(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 921foreach (var dtoType in dtoTypes.OrderBy(d => d.Name)) 957IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 978IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 1003IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 1016AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 1036AtsDtoTypeInfo dtoInfo, 1037IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById)
Aspire.Hosting.CodeGeneration.Rust (7)
AtsRustCodeGenerator.cs (7)
94foreach (var dto in dtoTypes) 190private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 204foreach (var dto in dtoTypes) 348AtsDtoTypeInfo dto, 349IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 370IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 389AtsTypeCategory.Dto => !dtoTypesById.TryGetValue(typeRef.TypeId, out var dto)
Aspire.Hosting.CodeGeneration.TypeScript (11)
AtsTypeScriptCodeGenerator.cs (4)
388!_projector.DtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType)) 403!_projector.DtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType)) 678private void GenerateDtoInterfaces(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 694foreach (var dto in generatedDtoTypes.OrderBy(d => d.Name))
TypeScriptApiProjector.cs (7)
123internal Dictionary<string, AtsDtoTypeInfo> DtoTypesById => _dtoTypesById; 187foreach (var dtoType in dtoTypes) 513foreach (var dtoType in _resolved.Context.DtoTypes 773AtsTypeCategory.Dto when value is JsonObject obj && _dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 783private string RenderTypeScriptDtoValue(JsonObject value, AtsDtoTypeInfo dtoInfo) 1392private (TypeScriptApiItem Item, TypeScriptApiDeclaration Declaration) ProjectDto(AtsDtoTypeInfo dtoType) 1610private readonly Dictionary<string, AtsDtoTypeInfo> _dtoTypesById = new(StringComparer.Ordinal);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (6)
AtsTypeScriptCodeGeneratorTests.cs (6)
194var testConfig = context.DtoTypes.First(dto => dto.Name == nameof(TestConfigDto)); 968var nullableNumberArrayDto = new AtsDtoTypeInfo 1877var processCommandExportOptions = Assert.Single(atsContext.DtoTypes, dto => dto.Name == "ProcessCommandExportOptions"); 2509var dto = Assert.Single(context.DtoTypes, dto => dto.TypeId == options.Type.TypeId); 2561var testConfigDto = atsContext.DtoTypes 2600var deeplyNestedDto = atsContext.DtoTypes
Aspire.Hosting.Native.CodeGeneration (11)
NativeCSharpProjection.cs (1)
35foreach (var dto in context.DtoTypes.OrderBy(type => type.Name, StringComparer.Ordinal))
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (10)
36public List<AtsDtoTypeInfo> DtoTypes { get; init; } = []; 143var allDtoTypes = new List<AtsDtoTypeInfo>(); 187foreach (var dtoType in result.DtoTypes) 375var dtoTypes = new List<AtsDtoTypeInfo>(); 439var dtoInfo = CreateDtoTypeInfo(type, assemblyExportedTypeCache, diagnostics); 601List<AtsDtoTypeInfo> dtoTypes) 620foreach (var dto in dtoTypes) 709List<AtsDtoTypeInfo> dtoTypes, 734foreach (var dto in dtoTypes) 1141private static AtsDtoTypeInfo? CreateDtoTypeInfo(
Aspire.Hosting.Native.Core.Tests (1)
NativeCSharpClientTests.cs (1)
40foreach (var dto in contract.DtoTypes)
Aspire.Hosting.RemoteHost (18)
AtsCapabilityScanner.cs (10)
36public List<AtsDtoTypeInfo> DtoTypes { get; init; } = []; 143var allDtoTypes = new List<AtsDtoTypeInfo>(); 187foreach (var dtoType in result.DtoTypes) 375var dtoTypes = new List<AtsDtoTypeInfo>(); 439var dtoInfo = CreateDtoTypeInfo(type, assemblyExportedTypeCache, diagnostics); 601List<AtsDtoTypeInfo> dtoTypes) 620foreach (var dto in dtoTypes) 709List<AtsDtoTypeInfo> dtoTypes, 734foreach (var dto in dtoTypes) 1141private static AtsDtoTypeInfo? CreateDtoTypeInfo(
AtsContextFilter.cs (7)
242foreach (var dtoType in context.DtoTypes.Where(type => includedDtoTypeIds.Contains(type.TypeId)).ToList()) 415IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 431if (dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType) && includedDtoTypeIds.Add(dtoType.TypeId)) 457IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 475AtsDtoTypeInfo dtoType, 477IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 559foreach (var type in context.DtoTypes)
CodeGeneration\CodeGenerationService.cs (1)
172private static DtoTypeResponse MapDtoType(AtsDtoTypeInfo t) => new()
Aspire.Hosting.RemoteHost.Tests (9)
AtsCapabilityScannerTests.cs (4)
428var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.DeriveTypeId(typeof(HttpCommandExportOptions))); 455var requestDataDto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.DeriveTypeId(typeof(HttpCommandRequestExportData))); 514var dto = Assert.Single(result.DtoTypes, d => d.ClrType == typeof(NullableScalarDto)); 793var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.DeriveTypeId(typeof(InitPropertiesDto)));
AtsContextFilterTests.cs (4)
264var ownedDtoType = new AtsDtoTypeInfo 422var selectedDtoType = new AtsDtoTypeInfo 443var referencedCoreDtoType = new AtsDtoTypeInfo 475var exportedValueOnlyDtoType = new AtsDtoTypeInfo
CallbackProxyTests.cs (1)
473? new List<AtsDtoTypeInfo>
Aspire.TypeSystem (1)
AtsContext.cs (1)
72public required IReadOnlyList<AtsDtoTypeInfo> DtoTypes { get; init; }