25 instantiations of AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Go.Tests (1)
AtsGoCodeGeneratorTests.cs (1)
56new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Java.Tests (5)
AtsJavaCodeGeneratorTests.cs (5)
3029new AtsDtoTypeInfo 3226new AtsDtoTypeInfo 3239new AtsDtoTypeInfo 3341new AtsDtoTypeInfo 3608new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
56new AtsDtoTypeInfo
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
801var nullableNumberArrayDto = new AtsDtoTypeInfo
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1136return 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)
394new() { TypeId = "test/TestCallbackDto", Name = "TestCallbackDto", ClrType = typeof(TestCallbackDto), Properties = [] }
78 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) 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)
910private void GenerateDtoClasses(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 918foreach (var dtoType in dtoTypes.OrderBy(d => d.Name)) 942IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 963IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById) 988IReadOnlyDictionary<string, AtsDtoTypeInfo> dtoTypesById, 1001AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo) 1021AtsDtoTypeInfo dtoInfo, 1022IReadOnlyDictionary<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)
375!_projector.DtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType)) 390!_projector.DtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType)) 642private void GenerateDtoInterfaces(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 658foreach (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 (5)
AtsTypeScriptCodeGeneratorTests.cs (5)
184var testConfig = context.DtoTypes.First(dto => dto.Name == nameof(TestConfigDto)); 801var nullableNumberArrayDto = new AtsDtoTypeInfo 1523var processCommandExportOptions = Assert.Single(atsContext.DtoTypes, dto => dto.Name == "ProcessCommandExportOptions"); 2110var testConfigDto = atsContext.DtoTypes 2149var 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)
163private static DtoTypeResponse MapDtoType(AtsDtoTypeInfo t) => new()
Aspire.Hosting.RemoteHost.Tests (9)
AtsCapabilityScannerTests.cs (4)
394var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.DeriveTypeId(typeof(HttpCommandExportOptions))); 421var requestDataDto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.DeriveTypeId(typeof(HttpCommandRequestExportData))); 480var dto = Assert.Single(result.DtoTypes, d => d.ClrType == typeof(NullableScalarDto)); 683var 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; }