17 writes to TypeId
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
682TypeId = "KeywordProbe",
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1138TypeId = typeId,
Aspire.Hosting.RemoteHost.Tests (15)
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 (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 = [] }
51 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]; 712sb.Append(_dtoNames[dtoInfo.TypeId]); 2065&& _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)); 717if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 722var dtoName = _dtoNames[dto.TypeId]; 884sb.Append(_dtoNames[dtoInfo.TypeId]);
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
720var dtoTypeIds = new HashSet<string>(dtoTypes.Select(d => d.TypeId)); 788GenerateExportedValues(exportedValues, dtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal)); 845var 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)
642.Where(dto => dto.TypeId != TypeScriptApiProjector.InteractionInputTypeId) 657var 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)) 1390var interfaceName = GetDtoInterfaceName(dtoType.TypeId); 1391var owningAssemblyName = GetOwningAssemblyName(dtoType.TypeId, dtoType.ClrType?.Assembly.GetName().Name); 1425TypeId = dtoType.TypeId,
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1994.FirstOrDefault(d => d.TypeId.Contains("TestConfigDto")); 2033.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(), 430if (dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType) && includedDtoTypeIds.Add(dtoType.TypeId)) 561AddAssemblyNameFromId(knownAssemblyNames, type.TypeId);
CodeGeneration\CodeGenerationService.cs (1)
164TypeId = t.TypeId,
Aspire.Hosting.RemoteHost.Tests (10)
AtsCapabilityScannerTests.cs (3)
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))); 669var 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,