35 writes to TypeId
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
204TypeId = dto.TypeId,
Aspire.Hosting.CodeGeneration.Go.Tests (7)
AtsGoCodeGeneratorTests.cs (3)
1842TypeId = "Tests/NullableArrayDto", 2681TypeId = "Tests/FooBarBaz", 2727TypeId = "Tests/NumericDto",
AtsGoDerivedBuilderTests.cs (1)
545TypeId = PoolSettingsId,
GoApiExportTests.cs (1)
330TypeId = "Test/Settings",
GoDocCommentTests.cs (1)
514TypeId = SettingsTypeId,
GoGeneratorEscapingTests.cs (1)
172TypeId = SettingsTypeId,
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
730TypeId = "Aspire.Hosting/Aspire.Hosting.ApplicationModel.GenerateParameterDefault", 3316TypeId = "Tests/ArrayDto", 3547TypeId = contextType.TypeId!, 3560TypeId = "Tests/CallbackOptions", 3662TypeId = contextType.TypeId!, 3929TypeId = "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)
988TypeId = "Aspire.Hosting.CodeGeneration.TypeScript.Tests/NullableNumberArrayDto",
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
1220TypeId = typeId,
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1220TypeId = 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 = [] }
66 references to TypeId
Aspire.Hosting.CodeGeneration.Go (16)
AtsGoCodeGenerator.ApiProjection.cs (4)
305if (_dtoNames.TryGetValue(dtoType.TypeId, out var name)) 357var owner = GetOwningAssemblyName(dtoType.TypeId, dtoType.ClrType?.Assembly.GetName().Name); 358AddGeneratedType(scope, GoApiItemKind.Dto, "dto", dtoType.TypeId, owner, type, members, usedBy: [], dtoType); 554var dtoTypesById = scope.Context.DtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal);
AtsGoCodeGenerator.cs (12)
175foreach (var dto in context.DtoTypes.Where(dto => requiredDtoIds.Contains(dto.TypeId))) 199.Where(dto => !AtsTypeSystemCompatibility.IsObsolete(dto) || requiredTypeIds.Contains(dto.TypeId)) 204TypeId = dto.TypeId, 355GenerateExportedValues(context.ExportedValues, context.DtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal)); 399if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 403_dtoNames[dto.TypeId] = ReserveName(SanitizeIdentifier(dto.Name), takenLowercase: false); 911if (_dtoNames.TryGetValue(dto.TypeId, out var dtoName)) 1069if (dto.TypeId == AtsConstants.ReferenceExpressionTypeId) 1074var dtoName = _dtoNames[dto.TypeId]; 1296sb.Append(_dtoNames[dtoInfo.TypeId]); 2471|| !_dtoNames.TryGetValue(dto.TypeId, out var optionsType)) 3036&& _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)
2617var dto = Assert.Single(context.DtoTypes, dto => dto.TypeId == options.Type.TypeId); 2670.FirstOrDefault(d => d.TypeId.Contains("TestConfigDto")); 2709.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)
191if (seenDtoTypeIds.Add(dtoType.TypeId))
Aspire.Hosting.RemoteHost (9)
AtsCapabilityScanner.cs (1)
191if (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,