25 instantiations of AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Go.Tests (1)
AtsGoCodeGeneratorTests.cs (1)
218new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Java.Tests (5)
AtsJavaCodeGeneratorTests.cs (5)
3081new AtsDtoTypeInfo 3278new AtsDtoTypeInfo 3291new AtsDtoTypeInfo 3393new AtsDtoTypeInfo 3660new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
56new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
906var nullableNumberArrayDto = 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)
437new() { TypeId = "test/TestCallbackDto", Name = "TestCallbackDto", ClrType = typeof(TestCallbackDto), Properties = [] }
79 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) 717AtsDtoTypeInfo dtoInfo, 718IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 2078foreach (var dto in context.DtoTypes)
Aspire.Hosting.CodeGeneration.Java (9)
AtsJavaCodeGenerator.cs (9)
597foreach (var dto in dtoTypes) 717private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 729foreach (var dto in dtoTypes) 808IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 835IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 869IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 880AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 894AtsDtoTypeInfo dtoInfo, 895IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById)
Aspire.Hosting.CodeGeneration.Python (8)
AtsPythonCodeGenerator.cs (8)
908private void GenerateDtoClasses(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 916foreach (var dtoType in dtoTypes.OrderBy(d => d.Name)) 940IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 961IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 986IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 999AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 1019AtsDtoTypeInfo dtoInfo, 1020IReadOnlyDictionary<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)
386!_projector.DtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType)) 401!_projector.DtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType)) 654private void GenerateDtoInterfaces(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 670foreach (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)
186var testConfig = context.DtoTypes.First(dto => dto.Name == nameof(TestConfigDto)); 906var nullableNumberArrayDto = new AtsDtoTypeInfo 1718var processCommandExportOptions = Assert.Single(atsContext.DtoTypes, dto => dto.Name == "ProcessCommandExportOptions"); 2326var dto = Assert.Single(context.DtoTypes, dto => dto.TypeId == options.Type.TypeId); 2378var testConfigDto = atsContext.DtoTypes 2417var 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) 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)
435? new List<AtsDtoTypeInfo>
Aspire.TypeSystem (1)
AtsContext.cs (1)
72public required IReadOnlyList<AtsDtoTypeInfo> DtoTypes { get; init; }