30 writes to TypeId
Aspire.Hosting.CodeGeneration.Go.Tests (4)
AtsGoCodeGeneratorTests.cs (1)
1221TypeId = "Tests/NullableArrayDto",
AtsGoDerivedBuilderTests.cs (1)
544TypeId = PoolSettingsId,
GoDocCommentTests.cs (1)
424TypeId = SettingsTypeId,
GoGeneratorEscapingTests.cs (1)
146TypeId = SettingsTypeId,
Aspire.Hosting.CodeGeneration.Java.Tests (5)
AtsJavaCodeGeneratorTests.cs (5)
3094TypeId = "Tests/ArrayDto", 3325TypeId = contextType.TypeId!, 3338TypeId = "Tests/CallbackOptions", 3440TypeId = contextType.TypeId!, 3707TypeId = "KeywordProbe",
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
384TypeId = "Tests/ATerminalKeywordOptions",
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
158TypeId = "Tests/NullableArrayDto",
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
970TypeId = "Aspire.Hosting.CodeGeneration.TypeScript.Tests/NullableNumberArrayDto",
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
1212TypeId = typeId,
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)
475new() { TypeId = "test/TestCallbackDto", Name = "TestCallbackDto", ClrType = typeof(TestCallbackDto), Properties = [] }
62 references to TypeId
Aspire.Hosting.CodeGeneration.Go (12)
AtsGoCodeGenerator.ApiProjection.cs (4)
292if (_dtoNames.TryGetValue(dtoType.TypeId, out var name)) 311var owner = GetOwningAssemblyName(dtoType.TypeId, dtoType.ClrType?.Assembly.GetName().Name); 312AddGeneratedType(scope, GoApiItemKind.Dto, "dto", dtoType.TypeId, owner, type, members, usedBy: []); 406var dtoTypesById = scope.Context.DtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal);
AtsGoCodeGenerator.cs (8)
142GenerateExportedValues(context.ExportedValues, context.DtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal)); 173if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 177_dtoNames[dto.TypeId] = ReserveName(SanitizeIdentifier(dto.Name), takenLowercase: false); 638if (_dtoNames.TryGetValue(dto.TypeId, out var dtoName)) 797if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 802var dtoName = _dtoNames[dto.TypeId]; 1024sb.Append(_dtoNames[dtoInfo.TypeId]); 2572&& _dtoNames.TryGetValue(dto.TypeId, out var goName))
Aspire.Hosting.CodeGeneration.Java (5)
AtsJavaCodeGenerator.cs (5)
600_dtoNames[dto.TypeId] = SanitizeIdentifier(dto.Name); 614GenerateExportedValues(exportedValues, dtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal)); 733if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 738var dtoName = _dtoNames[dto.TypeId]; 900sb.Append(_dtoNames[dtoInfo.TypeId]);
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
800var dtoTypeIds = new HashSet<string>(dtoTypes.Select(d => d.TypeId)); 866GenerateExportedValues(exportedValues, dtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal)); 923var className = GetDtoClassName(dtoType.TypeId);
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
392TypeId = context.DtoTypes.Single(t => t.Name == "TerminalOptions").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]; 352if (!visitedTypeIds.Add(dto.TypeId)) 363visitedTypeIds.Remove(dto.TypeId);
Aspire.Hosting.CodeGeneration.TypeScript (9)
AtsTypeScriptCodeGenerator.cs (2)
681.Where(dto => dto.TypeId != TypeScriptApiProjector.InteractionInputTypeId) 696var 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)
2509var dto = Assert.Single(context.DtoTypes, dto => dto.TypeId == options.Type.TypeId); 2562.FirstOrDefault(d => d.TypeId.Contains("TestConfigDto")); 2601.FirstOrDefault(d => d.TypeId.Contains("TestDeeplyNestedDto"));
Aspire.Hosting.Native.CodeGeneration (4)
NativeCSharpProjection.cs (1)
21var dtos = context.DtoTypes.ToDictionary(type => type.TypeId, type => type.Name);
Program.cs (2)
136else if (context.DtoTypes.Any(dto => dto.TypeId == capability.ReturnType.TypeId)) 457if (context.DtoTypes.Any(dto => dto.TypeId == $"{type.Assembly.GetName().Name}/{type.FullName}"))
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
189if (seenDtoTypeIds.Add(dtoType.TypeId))
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,