17 instantiations of AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
679new AtsDtoTypeInfo
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1136return new AtsDtoTypeInfo
Aspire.Hosting.RemoteHost.Tests (15)
AtsContextFilterTests.cs (4)
264var ownedDtoType = new AtsDtoTypeInfo 422var selectedDtoType = new AtsDtoTypeInfo 443var referencedCoreDtoType = new AtsDtoTypeInfo 475var exportedValueOnlyDtoType = new AtsDtoTypeInfo
AtsMarshallerTests.cs (10)
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 = [] },
CallbackProxyTests.cs (1)
394new() { TypeId = "test/TestCallbackDto", Name = "TestCallbackDto", ClrType = typeof(TestCallbackDto), Properties = [] }
77 references to AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Go (10)
AtsGoCodeGenerator.cs (10)
135foreach (var dto in context.DtoTypes) 522private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 534foreach (var dto in dtoTypes) 596IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 650IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 684IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 695AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 707AtsDtoTypeInfo dtoInfo, 708IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 2062foreach (var dto in context.DtoTypes)
Aspire.Hosting.CodeGeneration.Java (9)
AtsJavaCodeGenerator.cs (9)
597foreach (var dto in dtoTypes) 702private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 714foreach (var dto in dtoTypes) 793IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 820IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 854IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 865AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 879AtsDtoTypeInfo dtoInfo, 880IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById)
Aspire.Hosting.CodeGeneration.Python (8)
AtsPythonCodeGenerator.cs (8)
835private void GenerateDtoClasses(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 843foreach (var dtoType in dtoTypes.OrderBy(d => d.Name)) 867IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 888IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 913IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 926AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 946AtsDtoTypeInfo dtoInfo, 947IReadOnlyDictionary<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) 345AtsDtoTypeInfo dto, 346IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 367IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 386AtsTypeCategory.Dto => !dtoTypesById.TryGetValue(typeRef.TypeId, out var dto)
Aspire.Hosting.CodeGeneration.TypeScript (11)
AtsTypeScriptCodeGenerator.cs (4)
374!_projector.DtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType)) 389!_projector.DtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType)) 639private void GenerateDtoInterfaces(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 655foreach (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) 1388private (TypeScriptApiItem Item, TypeScriptApiDeclaration Declaration) ProjectDto(AtsDtoTypeInfo dtoType) 1606private readonly Dictionary<string, AtsDtoTypeInfo> _dtoTypesById = new(StringComparer.Ordinal);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (4)
AtsTypeScriptCodeGeneratorTests.cs (4)
181var testConfig = context.DtoTypes.First(dto => dto.Name == nameof(TestConfigDto)); 1407var processCommandExportOptions = Assert.Single(atsContext.DtoTypes, dto => dto.Name == "ProcessCommandExportOptions"); 1993var testConfigDto = atsContext.DtoTypes 2032var deeplyNestedDto = atsContext.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) 301var dtoTypes = new List<AtsDtoTypeInfo>(); 365var dtoInfo = CreateDtoTypeInfo(type, assemblyExportedTypeCache, diagnostics); 527List<AtsDtoTypeInfo> dtoTypes) 546foreach (var dto in dtoTypes) 635List<AtsDtoTypeInfo> dtoTypes, 660foreach (var dto in dtoTypes) 1067private static AtsDtoTypeInfo? CreateDtoTypeInfo(
AtsContextFilter.cs (7)
242foreach (var dtoType in context.DtoTypes.Where(type => includedDtoTypeIds.Contains(type.TypeId)).ToList()) 414IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 430if (dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType) && includedDtoTypeIds.Add(dtoType.TypeId)) 456IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 474AtsDtoTypeInfo dtoType, 476IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 558foreach (var type in context.DtoTypes)
CodeGeneration\CodeGenerationService.cs (1)
162private static DtoTypeResponse MapDtoType(AtsDtoTypeInfo t) => new()
Aspire.Hosting.RemoteHost.Tests (9)
AtsCapabilityScannerTests.cs (4)
380var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.DeriveTypeId(typeof(HttpCommandExportOptions))); 407var requestDataDto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.DeriveTypeId(typeof(HttpCommandRequestExportData))); 466var dto = Assert.Single(result.DtoTypes, d => d.ClrType == typeof(NullableScalarDto)); 669var 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)
392? new List<AtsDtoTypeInfo>
Aspire.TypeSystem (1)
AtsContext.cs (1)
72public required IReadOnlyList<AtsDtoTypeInfo> DtoTypes { get; init; }