17 writes to TypeId
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
682
TypeId
= "KeywordProbe",
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1138
TypeId
= typeId,
Aspire.Hosting.RemoteHost.Tests (15)
AtsContextFilterTests.cs (4)
266
TypeId
= "Aspire.Hosting.RemoteHost.Tests/UnreferencedOptions",
424
TypeId
= "Aspire.Hosting.RemoteHost.Tests/TestOptions",
445
TypeId
= "Aspire.TypeSystem/AtsContext",
477
TypeId
= "Aspire.TypeSystem/ExportedValueMetadata",
AtsMarshallerTests.cs (10)
23
new AtsDtoTypeInfo {
TypeId
= "test/TestDto", Name = "TestDto", ClrType = typeof(TestDto), Properties = [] },
24
new AtsDtoTypeInfo {
TypeId
= "test/TestDtoWithEnum", Name = "TestDtoWithEnum", ClrType = typeof(TestDtoWithEnum), Properties = [] },
25
new AtsDtoTypeInfo {
TypeId
= "test/TestDto", Name = "TestDto", ClrType = typeof(TestDto), Properties = [] },
26
new AtsDtoTypeInfo {
TypeId
= "test/SelfReferencingDto", Name = "SelfReferencingDto", ClrType = typeof(SelfReferencingDto), Properties = [] },
27
new AtsDtoTypeInfo {
TypeId
= "test/ParentDto", Name = "ParentDto", ClrType = typeof(ParentDto), Properties = [] },
28
new AtsDtoTypeInfo {
TypeId
= "test/ChildDto", Name = "ChildDto", ClrType = typeof(ChildDto), Properties = [] },
29
new AtsDtoTypeInfo {
TypeId
= "test/DtoWithJsonPropertyName", Name = "DtoWithJsonPropertyName", ClrType = typeof(DtoWithJsonPropertyName), Properties = [] },
30
new AtsDtoTypeInfo {
TypeId
= "test/DtoWithJsonIgnore", Name = "DtoWithJsonIgnore", ClrType = typeof(DtoWithJsonIgnore), Properties = [] },
31
new AtsDtoTypeInfo {
TypeId
= "test/DtoWithReadOnlyProperty", Name = "DtoWithReadOnlyProperty", ClrType = typeof(DtoWithReadOnlyProperty), Properties = [] },
32
new AtsDtoTypeInfo {
TypeId
= "test/DtoWithInitListProperties", Name = "DtoWithInitListProperties", ClrType = typeof(DtoWithInitListProperties), Properties = [] },
CallbackProxyTests.cs (1)
394
new() {
TypeId
= "test/TestCallbackDto", Name = "TestCallbackDto", ClrType = typeof(TestCallbackDto), Properties = [] }
51 references to TypeId
Aspire.Hosting.CodeGeneration.Go (7)
AtsGoCodeGenerator.cs (7)
109
GenerateExportedValues(context.ExportedValues, context.DtoTypes.ToDictionary(dto => dto.
TypeId
, StringComparer.Ordinal));
137
if (dto.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
141
_dtoNames[dto.
TypeId
] = ReserveName(SanitizeIdentifier(dto.Name), takenLowercase: false);
536
if (dto.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
541
var dtoName = _dtoNames[dto.
TypeId
];
712
sb.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);
613
GenerateExportedValues(exportedValues, dtoTypes.ToDictionary(dto => dto.
TypeId
, StringComparer.Ordinal));
717
if (dto.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
722
var dtoName = _dtoNames[dto.
TypeId
];
884
sb.Append(_dtoNames[dtoInfo.
TypeId
]);
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
720
var dtoTypeIds = new HashSet<string>(dtoTypes.Select(d => d.
TypeId
));
788
GenerateExportedValues(exportedValues, dtoTypes.ToDictionary(dto => dto.
TypeId
, StringComparer.Ordinal));
845
var className = GetDtoClassName(dtoType.
TypeId
);
Aspire.Hosting.CodeGeneration.Rust (6)
AtsRustCodeGenerator.cs (6)
96
_dtoNames[dto.
TypeId
] = SanitizeIdentifier(dto.Name);
197
var dtoTypesById = dtoTypes.ToDictionary(dto => dto.
TypeId
, StringComparer.Ordinal);
207
if (dto.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
212
var dtoName = _dtoNames[dto.
TypeId
];
349
if (!visitedTypeIds.Add(dto.
TypeId
))
360
visitedTypeIds.Remove(dto.
TypeId
);
Aspire.Hosting.CodeGeneration.TypeScript (9)
AtsTypeScriptCodeGenerator.cs (2)
642
.Where(dto => dto.
TypeId
!= TypeScriptApiProjector.InteractionInputTypeId)
657
var interfaceName = TypeScriptApiProjector.GetDtoInterfaceName(dto.
TypeId
);
TypeScriptApiProjector.cs (7)
145
var 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))
1390
var interfaceName = GetDtoInterfaceName(dtoType.
TypeId
);
1391
var owningAssemblyName = GetOwningAssemblyName(dtoType.
TypeId
, dtoType.ClrType?.Assembly.GetName().Name);
1425
TypeId = 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)
189
if (seenDtoTypeIds.Add(dtoType.
TypeId
))
AtsContextFilter.cs (7)
202
var dtoTypesById = context.DtoTypes.ToDictionary(type => type.
TypeId
, StringComparer.Ordinal);
213
.Where(type => IsOwnedBySelectedAssembly(type.ClrType?.Assembly, type.
TypeId
, normalizedAssemblyNames))
214
.Select(type => type.
TypeId
),
242
foreach (var dtoType in context.DtoTypes.Where(type => includedDtoTypeIds.Contains(type.
TypeId
)).ToList())
283
DtoTypes = context.DtoTypes.Where(type => includedDtoTypeIds.Contains(type.
TypeId
)).ToList(),
430
if (dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoType) && includedDtoTypeIds.Add(dtoType.
TypeId
))
561
AddAssemblyNameFromId(knownAssemblyNames, type.
TypeId
);
CodeGeneration\CodeGenerationService.cs (1)
164
TypeId = t.
TypeId
,
Aspire.Hosting.RemoteHost.Tests (10)
AtsCapabilityScannerTests.cs (3)
380
var dto = Assert.Single(result.DtoTypes, d => d.
TypeId
== AtsTypeMapping.DeriveTypeId(typeof(HttpCommandExportOptions)));
407
var requestDataDto = Assert.Single(result.DtoTypes, d => d.
TypeId
== AtsTypeMapping.DeriveTypeId(typeof(HttpCommandRequestExportData)));
669
var dto = Assert.Single(result.DtoTypes, d => d.
TypeId
== AtsTypeMapping.DeriveTypeId(typeof(InitPropertiesDto)));
AtsContextFilterTests.cs (7)
132
type => Assert.Equal("Aspire.Hosting.RemoteHost.Tests/TestOptions", type.
TypeId
));
161
Assert.Contains(filteredContext.DtoTypes, type => type.
TypeId
== "Aspire.TypeSystem/AtsContext");
162
Assert.Contains(filteredContext.DtoTypes, type => type.
TypeId
== "Aspire.TypeSystem/ExportedValueMetadata");
319
Assert.Contains(filteredContext.DtoTypes, type => type.
TypeId
== ownedDtoType.
TypeId
);
517
TypeId = referencedCoreDtoType.
TypeId
,
591
TypeId = exportedValueOnlyDtoType.
TypeId
,