25 writes to TypeId
Aspire.Hosting.CodeGeneration.Go.Tests (1)
AtsGoCodeGeneratorTests.cs (1)
220TypeId = "Tests/NullableArrayDto",
Aspire.Hosting.CodeGeneration.Java.Tests (5)
AtsJavaCodeGeneratorTests.cs (5)
3084TypeId = "Tests/ArrayDto", 3281TypeId = contextType.TypeId!, 3294TypeId = "Tests/CallbackOptions", 3396TypeId = contextType.TypeId!, 3663TypeId = "KeywordProbe",
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
58TypeId = "Tests/NullableArrayDto",
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
908TypeId = "Aspire.Hosting.CodeGeneration.TypeScript.Tests/NullableNumberArrayDto",
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1212TypeId = typeId,
Aspire.Hosting.RemoteHost.Tests (16)
AtsContextFilterTests.cs (4)
266TypeId = "Aspire.Hosting.RemoteHost.Tests/UnreferencedOptions", 424TypeId = "Aspire.Hosting.RemoteHost.Tests/TestOptions", 445TypeId = "Aspire.TypeSystem/AtsContext", 477TypeId = "Aspire.TypeSystem/ExportedValueMetadata",
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 = [] }
52 references to TypeId
Aspire.Hosting.CodeGeneration.Go (7)
AtsGoCodeGenerator.cs (7)
109GenerateExportedValues(context.ExportedValues, context.DtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal)); 137if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 141_dtoNames[dto.TypeId] = ReserveName(SanitizeIdentifier(dto.Name), takenLowercase: false); 536if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 541var dtoName = _dtoNames[dto.TypeId]; 722sb.Append(_dtoNames[dtoInfo.TypeId]); 2081&& _dtoNames.TryGetValue(dto.TypeId, out var goName))
Aspire.Hosting.CodeGeneration.Java (5)
AtsJavaCodeGenerator.cs (5)
599_dtoNames[dto.TypeId] = SanitizeIdentifier(dto.Name); 613GenerateExportedValues(exportedValues, dtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal)); 732if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 737var dtoName = _dtoNames[dto.TypeId]; 899sb.Append(_dtoNames[dtoInfo.TypeId]);
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
795var dtoTypeIds = new HashSet<string>(dtoTypes.Select(d => d.TypeId)); 861GenerateExportedValues(exportedValues, dtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal)); 918var className = GetDtoClassName(dtoType.TypeId);
Aspire.Hosting.CodeGeneration.Rust (6)
AtsRustCodeGenerator.cs (6)
96_dtoNames[dto.TypeId] = SanitizeIdentifier(dto.Name); 197var dtoTypesById = dtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal); 207if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 212var dtoName = _dtoNames[dto.TypeId]; 349if (!visitedTypeIds.Add(dto.TypeId)) 360visitedTypeIds.Remove(dto.TypeId);
Aspire.Hosting.CodeGeneration.TypeScript (9)
AtsTypeScriptCodeGenerator.cs (2)
657.Where(dto => dto.TypeId != TypeScriptApiProjector.InteractionInputTypeId) 672var interfaceName = TypeScriptApiProjector.GetDtoInterfaceName(dto.TypeId);
TypeScriptApiProjector.cs (7)
145var dtoTypeIds = new HashSet<string>(dtoTypes.Select(d => d.TypeId), StringComparer.Ordinal); 189_dtoTypesById[dtoType.TypeId] = dtoType; 514.Where(d => d.TypeId != InteractionInputTypeId) 515.OrderBy(d => d.TypeId, StringComparer.Ordinal)) 1394var interfaceName = GetDtoInterfaceName(dtoType.TypeId); 1395var owningAssemblyName = GetOwningAssemblyName(dtoType.TypeId, dtoType.ClrType?.Assembly.GetName().Name); 1429TypeId = dtoType.TypeId,
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
AtsTypeScriptCodeGeneratorTests.cs (3)
2326var dto = Assert.Single(context.DtoTypes, dto => dto.TypeId == options.Type.TypeId); 2379.FirstOrDefault(d => d.TypeId.Contains("TestConfigDto")); 2418.FirstOrDefault(d => d.TypeId.Contains("TestDeeplyNestedDto"));
Aspire.Hosting.RemoteHost (9)
AtsCapabilityScanner.cs (1)
189if (seenDtoTypeIds.Add(dtoType.TypeId))
AtsContextFilter.cs (7)
202var dtoTypesById = context.DtoTypes.ToDictionary(type => type.TypeId, StringComparer.Ordinal); 213.Where(type => IsOwnedBySelectedAssembly(type.ClrType?.Assembly, type.TypeId, normalizedAssemblyNames)) 214.Select(type => type.TypeId), 242foreach (var dtoType in context.DtoTypes.Where(type => includedDtoTypeIds.Contains(type.TypeId)).ToList()) 283DtoTypes = context.DtoTypes.Where(type => includedDtoTypeIds.Contains(type.TypeId)).ToList(), 431if (dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType) && includedDtoTypeIds.Add(dtoType.TypeId)) 562AddAssemblyNameFromId(knownAssemblyNames, type.TypeId);
CodeGeneration\CodeGenerationService.cs (1)
174TypeId = t.TypeId,
Aspire.Hosting.RemoteHost.Tests (10)
AtsCapabilityScannerTests.cs (3)
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))); 793var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.DeriveTypeId(typeof(InitPropertiesDto)));
AtsContextFilterTests.cs (7)
132type => Assert.Equal("Aspire.Hosting.RemoteHost.Tests/TestOptions", type.TypeId)); 161Assert.Contains(filteredContext.DtoTypes, type => type.TypeId == "Aspire.TypeSystem/AtsContext"); 162Assert.Contains(filteredContext.DtoTypes, type => type.TypeId == "Aspire.TypeSystem/ExportedValueMetadata"); 319Assert.Contains(filteredContext.DtoTypes, type => type.TypeId == ownedDtoType.TypeId); 517TypeId = referencedCoreDtoType.TypeId, 591TypeId = exportedValueOnlyDtoType.TypeId,