140 writes to TypeId
Aspire.Hosting.CodeGeneration.Java.Tests (44)
AtsJavaCodeGeneratorTests.cs (44)
2646
new AtsTypeRef {
TypeId
= "array", Category = AtsTypeCategory.Array, ElementType = MutableStringDict() });
2661
TypeId
= "list",
2676
var stringType = new AtsTypeRef {
TypeId
= "string", Category = AtsTypeCategory.Primitive };
2677
var innerArray = new AtsTypeRef {
TypeId
= "array", Category = AtsTypeCategory.Array, ElementType = stringType };
2680
new AtsTypeRef {
TypeId
= "array", Category = AtsTypeCategory.Array, ElementType = innerArray });
2723
var resourceType = new AtsTypeRef {
TypeId
= "Tests/ProbeResource", Category = AtsTypeCategory.Handle };
2724
var stringType = new AtsTypeRef {
TypeId
= AtsConstants.String, Category = AtsTypeCategory.Primitive };
2725
var innerArray = new AtsTypeRef {
TypeId
= "array", Category = AtsTypeCategory.Array, ElementType = stringType };
2726
var matrixType = new AtsTypeRef {
TypeId
= "array", Category = AtsTypeCategory.Array, ElementType = innerArray };
2731
Type = new AtsTypeRef {
TypeId
= "callback", Category = AtsTypeCategory.Callback },
2733
CallbackReturnType = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive }
2740
ReturnType = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive },
2761
var resourceType = new AtsTypeRef {
TypeId
= "Tests/ProbeResource", Category = AtsTypeCategory.Handle };
2765
Type = new AtsTypeRef {
TypeId
= AtsConstants.CancellationToken, Category = AtsTypeCategory.Dto }
2772
ReturnType = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive },
2789
var resourceType = new AtsTypeRef {
TypeId
= "Tests/ProbeResource", Category = AtsTypeCategory.Handle };
2807
TypeId
= AtsConstants.Number,
2833
TypeId
= "Tests/ProbeResource",
2841
new AtsTypeRef {
TypeId
= AtsConstants.Boolean, Category = AtsTypeCategory.Primitive, IsNullable = true }),
2845
new AtsTypeRef {
TypeId
= AtsConstants.Number, Category = AtsTypeCategory.Primitive, IsNullable = true }));
2963
var resourceType = new AtsTypeRef {
TypeId
= "Tests/ProbeResource", Category = AtsTypeCategory.Handle };
2966
TypeId
= AtsConstants.Number,
2972
TypeId
= AtsConstants.Boolean,
2978
TypeId
= "numberArray",
2984
TypeId
= "booleanArray",
2990
TypeId
= "booleanMatrix",
2998
Type = new AtsTypeRef {
TypeId
= "callback", Category = AtsTypeCategory.Callback },
3004
CallbackReturnType = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive }
3011
ReturnType = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive },
3219
var contextType = new AtsTypeRef {
TypeId
= "Tests/MutableContext", Category = AtsTypeCategory.Dto };
3235
Type = new AtsTypeRef {
TypeId
= AtsConstants.String, Category = AtsTypeCategory.Primitive }
3248
Type = new AtsTypeRef {
TypeId
= "callback", Category = AtsTypeCategory.Callback },
3256
TypeId
= AtsConstants.Void,
3310
var resourceType = new AtsTypeRef {
TypeId
= "Tests/ProbeResource", Category = AtsTypeCategory.Handle };
3311
var contextType = new AtsTypeRef {
TypeId
= "Tests/MutableContext", Category = AtsTypeCategory.Dto };
3316
Type = new AtsTypeRef {
TypeId
= "callback", Category = AtsTypeCategory.Callback },
3321
CallbackReturnType = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive }
3328
ReturnType = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive },
3350
Type = new AtsTypeRef {
TypeId
= AtsConstants.String, Category = AtsTypeCategory.Primitive }
3537
Type = new AtsTypeRef {
TypeId
= "KeywordProbe", Category = AtsTypeCategory.Dto }
3596
new AtsTypeRef {
TypeId
= "string", Category = AtsTypeCategory.Primitive });
3627
TypeId
= "dict",
3630
KeyType = new AtsTypeRef {
TypeId
= "string", Category = AtsTypeCategory.Primitive },
3631
ValueType = new AtsTypeRef {
TypeId
= "string", Category = AtsTypeCategory.Primitive }
Aspire.Hosting.CodeGeneration.Python.Tests (19)
AtsPythonCodeGeneratorTests.cs (19)
498
TypeId
= "Tests/KeywordResource",
523
TypeId
= AtsConstants.String,
554
TypeId
= "Tests/AcronymResource",
579
TypeId
= AtsConstants.String,
613
TypeId
= genericBaseType.AssemblyQualifiedName!,
620
TypeId
= genericInterfaceType.AssemblyQualifiedName!,
628
TypeId
= "Tests/GenericResource",
653
TypeId
= AtsConstants.Void,
693
TypeId
= "Tests/NullableUnion",
699
TypeId
= "Tests/NestedNullableUnion",
705
TypeId
= AtsConstants.Number,
713
TypeId
= AtsConstants.String,
748
TypeId
= "Tests/NullableItems",
752
TypeId
= AtsConstants.Number,
762
TypeId
= AtsConstants.Void,
798
TypeId
= AtsConstants.String,
804
TypeId
= AtsConstants.Boolean,
810
TypeId
= "Tests/CollidingAlphaResource",
817
TypeId
= "Tests/CollidingBetaResource",
Aspire.Hosting.CodeGeneration.TypeScript.Tests (21)
AtsTypeScriptCodeGeneratorTests.cs (21)
784
TypeId
= AtsConstants.Number,
790
TypeId
= $"{AtsConstants.Number}[]",
841
TypeId
= "test/EmptyUnion",
1380
TypeId
= $"{resourceType.Assembly.GetName().Name}/{resourceType.FullName}",
1626
TypeId
= GetAtsTypeId(typeof(TResource)),
1639
TypeId
= AtsConstants.Void,
1662
TypeId
= AtsConstants.Void,
2565
TypeId
= $"{ApiExportPackageName}/PromiseContext",
2570
TypeId
= AtsConstants.String,
2575
TypeId
= AtsConstants.Void,
2770
TypeId
= $"{eventHubsPackage}/AzureEventHubsEmulatorResource",
2778
TypeId
= $"{serviceBusPackage}/AzureServiceBusEmulatorResource",
2864
TypeId
= targetTypeId,
2879
TypeId
= AtsConstants.Void,
2982
TypeId
= $"Aspire.Hosting/{targetTypeName}",
2997
TypeId
= "callback",
3012
TypeId
= AtsConstants.Void,
3019
TypeId
= AtsConstants.Void,
3046
TypeId
= AtsConstants.String,
3055
TypeId
= AtsConstants.Number,
3063
TypeId
= AtsConstants.Void,
Aspire.Hosting.RemoteHost (37)
Ats\AtsMarshaller.cs (1)
443
TypeId
= AtsTypeMapping.DeriveTypeId(type),
AtsCapabilityScanner.cs (34)
855
TypeId
= originalTarget,
885
TypeId
= typeInfo.AtsTypeId,
1097
? new AtsTypeRef {
TypeId
= "callback", ClrType = prop.PropertyType, Category = AtsTypeCategory.Callback }
1617
: new AtsTypeRef {
TypeId
= AtsConstants.Any, Category = AtsTypeCategory.Primitive };
1621
TypeId
= AtsConstants.DictTypeId(keyTypeRef.TypeId, valueTypeRef.TypeId),
1644
propertyTypeRef = new AtsTypeRef {
TypeId
= AtsConstants.Any, Category = AtsTypeCategory.Primitive };
2150
? new AtsTypeRef {
TypeId
= "callback", Category = AtsTypeCategory.Callback }
2207
returnTypeRef = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive };
2211
returnTypeRef = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive };
2219
?? new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive }
2220
: new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive };
2225
?? new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive }
2253
var voidTypeRef = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive };
2588
TypeId
= AtsConstants.Void,
2603
TypeId
= typeRef.TypeId,
2683
return new AtsTypeRef {
TypeId
= primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive };
2689
return new AtsTypeRef {
TypeId
= AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive };
2696
TypeId
= AtsConstants.DictTypeId(AtsConstants.String, AtsConstants.Any),
2699
KeyType = new AtsTypeRef {
TypeId
= AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive },
2700
ValueType = new AtsTypeRef {
TypeId
= AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive },
2709
TypeId
= AtsConstants.ListTypeId(AtsConstants.Any),
2712
ElementType = new AtsTypeRef {
TypeId
= AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }
2724
TypeId
= AtsConstants.EnumTypeId(type.FullName ?? type.Name),
2747
TypeId
= AtsConstants.DictTypeId(keyTypeRef.TypeId, valueTypeRef.TypeId),
2770
TypeId
= AtsConstants.DictTypeId(keyTypeRef.TypeId, valueTypeRef.TypeId),
2792
TypeId
= AtsConstants.ListTypeId(elementTypeRef.TypeId),
2812
TypeId
= AtsConstants.ArrayTypeId(elementTypeRef.TypeId),
2857
TypeId
= AtsConstants.ArrayTypeId(elementTypeRef.TypeId),
2873
TypeId
= AtsTypeMapping.DeriveTypeId(type),
2885
TypeId
= AtsTypeMapping.DeriveTypeId(type),
2895
TypeId
= AtsTypeMapping.DeriveTypeId(type),
2990
TypeId
= ifaceTypeId,
3057
TypeId
= typeId,
3316
TypeId
= string.Join("|", unionTypes.Select(u => u.TypeId)),
AtsContextFilter.cs (2)
324
TypeId
= targetTypeId,
343
TypeId
= AtsConstants.Void,
Aspire.Hosting.RemoteHost.Tests (19)
AtsContextFilterTests.cs (17)
191
TypeId
= "Aspire.TypeSystem/AtsContext",
198
TypeId
= "Aspire.Hosting/Aspire.Hosting.DistributedApplication",
204
TypeId
= referencedHandleType.AtsTypeId,
276
TypeId
= foreignEnum.TypeId,
285
Type = new AtsTypeRef {
TypeId
= AtsConstants.Void, Category = AtsTypeCategory.Primitive },
294
TypeId
= foreignCallbackEnum.TypeId,
434
TypeId
= AtsConstants.EnumTypeId(typeof(TestMode).FullName!),
487
TypeId
= exportedValueOnlyEnumType.TypeId,
507
TypeId
= selectedHandleType.AtsTypeId,
517
TypeId
= referencedCoreDtoType.TypeId,
527
TypeId
= referencedCoreEnumType.TypeId,
535
TypeId
= referencedCoreHandleType.AtsTypeId,
543
TypeId
= selectedHandleType.AtsTypeId,
560
TypeId
= unrelatedCoreHandleType.AtsTypeId,
578
TypeId
= "System/String",
591
TypeId
= exportedValueOnlyDtoType.TypeId,
604
TypeId
= "System/String",
AtsMarshallerTests.cs (2)
225
TypeId
= AtsConstants.CancellationToken,
953
var typeRef = new AtsTypeRef {
TypeId
= "test/SelfReferencingDto", Category = AtsTypeCategory.Dto };
385 references to TypeId
Aspire.Hosting.CodeGeneration.Go (31)
AtsGoCodeGenerator.cs (31)
184
if (!string.IsNullOrEmpty(expanded.
TypeId
))
186
expansionTargetIds.Add(expanded.
TypeId
);
315
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId
316
|| IsCancellationTokenTypeId(typeRef.
TypeId
))
322
set.Add(typeRef.
TypeId
);
432
if (string.IsNullOrEmpty(targetType.
TypeId
))
438
if (!_implNames.ContainsKey(targetType.
TypeId
))
442
if (!result.TryGetValue(targetType.
TypeId
, out var list))
445
result[targetType.
TypeId
] = list;
694
AtsTypeCategory.Enum => $"{MapEnumType(typeRef.
TypeId
)}({value.ToRelaxedJsonString()})",
695
AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.
TypeId
, out var dtoInfo)
710
? MapPrimitiveType(typeRef.
TypeId
)
711
: MapEnumType(typeRef.
TypeId
);
1101
sb.Append(MapDtoType(directOptionsParam.Type!.
TypeId
));
1147
&& p.CallbackReturnType.
TypeId
!= AtsConstants.Void;
1164
var hasReturn = capability.ReturnType is not null && capability.ReturnType.
TypeId
!= AtsConstants.Void;
1181
if (IsSameType(returnType.
TypeId
, capability, currentTypeId))
1277
var isFluent = IsSameType(returnType.
TypeId
, capability, currentTypeId);
1291
var childImplName = returnType.
TypeId
is not null && _implNames.TryGetValue(returnType.
TypeId
, out var implTarget)
1466
var dtoType = MapDtoType(directOptionsParam.Type!.
TypeId
);
1557
&& p.CallbackReturnType.
TypeId
!= AtsConstants.Void;
1908
var hasReturn = capability.ReturnType is not null && capability.ReturnType.
TypeId
!= AtsConstants.Void;
2098
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
2105
AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.
TypeId
),
2106
AtsTypeCategory.Enum => MapEnumType(typeRef.
TypeId
),
2107
AtsTypeCategory.Handle => MapHandleType(typeRef.
TypeId
),
2108
AtsTypeCategory.Dto => "*" + MapDtoType(typeRef.
TypeId
),
2136
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
2166
&& typeRef.
TypeId
is not (AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken);
2212
IsCancellationTokenTypeId(parameter.Type?.
TypeId
);
Aspire.Hosting.CodeGeneration.Go.Tests (2)
AtsGoCodeGeneratorTests.cs (2)
164
Assert.Contains(addTestRedis.Parameters, p => p.Name == "name" && p.Type?.
TypeId
== "string");
282
.Any(i => i.
TypeId
.Contains("IResourceWithEnvironment"));
Aspire.Hosting.CodeGeneration.Java (39)
AtsJavaCodeGenerator.cs (39)
865
AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.
TypeId
, out var dtoInfo)
998
if (!string.Equals(left.Type?.
TypeId
, right.Type?.
TypeId
, StringComparison.Ordinal))
1022
if (!string.Equals(leftCallbackParameters[i].Type.
TypeId
, rightCallbackParameters[i].Type.
TypeId
, StringComparison.Ordinal))
1028
return string.Equals(left.CallbackReturnType?.
TypeId
, right.CallbackReturnType?.
TypeId
, StringComparison.Ordinal);
1866
var returnsDifferentBuilder = capability.ReturnType?.
TypeId
is { } returnTypeId &&
1871
? new(MapHandleType(capability.ReturnType!.
TypeId
!), HasReturn: true, ReturnsCurrentBuilder: false)
1875
var hasReturn = capability.ReturnType?.
TypeId
!= AtsConstants.Void;
1890
var hasReturnType = callbackReturnType != null && callbackReturnType.
TypeId
!= AtsConstants.Void;
1924
var hasReturnType = callbackParam.CallbackReturnType != null && callbackParam.CallbackReturnType.
TypeId
!= AtsConstants.Void;
1980
var hasReturnType = property.CallbackReturnType != null && property.CallbackReturnType.
TypeId
!= AtsConstants.Void;
2010
if (callbackParameter.Type?.
TypeId
== AtsConstants.CancellationToken)
2030
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
2035
if (IsCancellationTokenTypeId(typeRef.
TypeId
))
2043
AtsTypeCategory.Primitive => RenderJavaPrimitiveTransportValueConversion(typeRef.
TypeId
, valueExpression, allowNull),
2044
AtsTypeCategory.Enum => RenderJavaEnumTransportValueConversion(typeRef.
TypeId
, valueExpression, allowNull),
2045
AtsTypeCategory.Dto => RenderJavaDtoTransportValueConversion(typeRef.
TypeId
, valueExpression, allowNull),
2209
if (typeRef.
TypeId
== AtsConstants.CancellationToken)
2462
.FirstOrDefault(baseType => !string.Equals(baseType.
TypeId
, typeId, StringComparison.Ordinal)
2463
&& _classNames.ContainsKey(baseType.
TypeId
));
2467
baseClassName = _classNames[exportedBaseType.
TypeId
];
2501
if (targetType.
TypeId
is null)
2506
if (!result.TryGetValue(targetType.
TypeId
, out var list))
2509
result[targetType.
TypeId
] = list;
2549
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
2556
AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.
TypeId
, isOptional || useBoxedTypes),
2557
AtsTypeCategory.Enum => MapEnumType(typeRef.
TypeId
),
2558
AtsTypeCategory.Handle => MapHandleType(typeRef.
TypeId
),
2559
AtsTypeCategory.Dto => MapDtoType(typeRef.
TypeId
),
2581
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
2603
if (IsCancellationTokenTypeId(typeRef.
TypeId
))
2663
IsCancellationTokenTypeId(parameter.Type?.
TypeId
);
2677
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId
2678
|| IsCancellationTokenTypeId(typeRef.
TypeId
))
2685
handleTypeIds.Add(typeRef.
TypeId
);
2700
typeIds[typeRef.
TypeId
] = false; // false = List
2707
typeIds[typeRef.
TypeId
] = true; // true = Dict
Aspire.Hosting.CodeGeneration.Java.Tests (13)
AtsJavaCodeGeneratorTests.cs (13)
132
Assert.Contains(addTestRedis.Parameters, p => p.Name == "name" && p.Type?.
TypeId
== "string");
274
.Any(i => i.
TypeId
.Contains("IResourceWithEnvironment"));
2741
TargetTypeId = resourceType.
TypeId
,
2773
TargetTypeId = resourceType.
TypeId
,
2815
TargetTypeId = resourceType.
TypeId
,
3012
TargetTypeId = resourceType.
TypeId
,
3026
HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.
TypeId
! }],
3229
TypeId = contextType.
TypeId
!,
3329
TargetTypeId = resourceType.
TypeId
,
3338
HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.
TypeId
! }],
3344
TypeId = contextType.
TypeId
!,
3639
HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.
TypeId
! }],
3653
TargetTypeId = resourceType.
TypeId
,
Aspire.Hosting.CodeGeneration.Python (51)
AtsPythonCodeGenerator.cs (51)
173
if (capabilityTargetType.
TypeId
== builderTargetType.
TypeId
)
183
if (capabilityTargetType.
TypeId
== currentBase.
TypeId
)
191
if (currentBase.ImplementedInterfaces.Any(i => i.
TypeId
== capabilityTargetType.
TypeId
))
215
if (_wrapperClassNames.TryGetValue(typeRef.
TypeId
, out var wrapperClassName))
222
AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.
TypeId
),
223
AtsTypeCategory.Enum => MapEnumType(typeRef.
TypeId
),
224
AtsTypeCategory.Handle => GetWrapperOrHandleName(typeRef.
TypeId
),
225
AtsTypeCategory.Dto => GetDtoClassName(typeRef.
TypeId
),
247
&& typeRef.
TypeId
is not (AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken);
275
if (param.Type?.
TypeId
== AtsConstants.CancellationToken)
288
if (param.Type?.
TypeId
== AtsConstants.CancellationToken)
305
? JsonValue.Create(callbackParameter.Type.
TypeId
)!.ToJsonString()
454
filtered = filtered.Where(p => p.Type?.
TypeId
!= AtsConstants.CancellationToken);
466
if (param.Type?.
TypeId
== AtsConstants.CancellationToken)
528
if (typeRef.Category == AtsTypeCategory.Primitive && typeRef.
TypeId
== AtsConstants.Void)
661
if (param.Type?.
TypeId
== AtsConstants.CancellationToken)
686
private static string? GetReturnTypeId(AtsCapabilityInfo capability) => capability.ReturnType?.
TypeId
;
803
if (IsHandleType(cap.ReturnType) && !dtoTypeIds.Contains(cap.ReturnType!.
TypeId
))
810
if (IsHandleType(param.Type) && !dtoTypeIds.Contains(param.Type!.
TypeId
))
812
typeIds.Add(param.Type!.
TypeId
);
819
if (IsHandleType(cbParam.Type) && !dtoTypeIds.Contains(cbParam.Type.
TypeId
))
821
typeIds.Add(cbParam.Type.
TypeId
);
1001
AtsTypeCategory.Dto when value is JsonObject obj && dtoTypesById.TryGetValue(typeRef.
TypeId
, out var dtoInfo)
1361
var returnsSelf = isDistributedApplicationBuilder && capability.ReturnType?.
TypeId
== capability.TargetTypeId;
1465
.Select(i => i.
TypeId
),
1468
.Where(i => !transitivelyImplemented.Contains(i.
TypeId
))
1470
baseClass = string.Join(", ", implementedInterfaces.Select(i => DeriveClassName(i.
TypeId
)));
1530
baseTypeInterfaces = baseType.ImplementedInterfaces.Select(i => i.
TypeId
).ToList();
1539
var implementedInterfaces = builder.TargetType?.ImplementedInterfaces.Where(i => !baseTypeInterfaces.Contains(i.
TypeId
)).ToList();
1546
.Select(i => i.
TypeId
),
1549
.Where(i => !transitivelyImplemented.Contains(i.
TypeId
))
1666
var returnsBuilder = capability.ReturnsBuilder && capability.ReturnType!.
TypeId
== capability.TargetTypeId;
1667
var returnsChildBuilder = capability.ReturnsBuilder && capability.ReturnType != null && IsHandleType(capability.ReturnType) && capability.ReturnType.
TypeId
!= capability.TargetTypeId;
1947
if (!capabilitiesByTypeId.TryGetValue(expandedType.
TypeId
, out var list))
1950
capabilitiesByTypeId[expandedType.
TypeId
] = list;
1951
typeRefsByTypeId[expandedType.
TypeId
] = expandedType;
2047
.Select(i => i.
TypeId
)
2174
if (!string.IsNullOrEmpty(typeRef.
TypeId
) && typeRef.Category == AtsTypeCategory.Handle)
2176
typeRefs.TryAdd(typeRef.
TypeId
, typeRef);
2178
if (!string.IsNullOrEmpty(typeRef.
TypeId
) && typeRef.Category == AtsTypeCategory.Dict)
2180
_moduleBuilder.HandleRegistrations.TryAdd(typeRef.
TypeId
, "AspireDict");
2182
if (!string.IsNullOrEmpty(typeRef.
TypeId
) && typeRef.Category == AtsTypeCategory.List)
2184
_moduleBuilder.HandleRegistrations.TryAdd(typeRef.
TypeId
, "AspireList");
2263
return DeriveClassName(typeRef.
TypeId
);
2432
var tickIndex = typeRef.
TypeId
.IndexOf('`');
2435
return typeRef.
TypeId
[..tickIndex] + "T";
2438
return typeRef.
TypeId
+ "T";
2441
return typeRef.
TypeId
;
Aspire.Hosting.CodeGeneration.Python.Tests (14)
AtsPythonCodeGeneratorTests.cs (14)
101
Assert.Contains(addTestRedis.Parameters, p => p.Name == "name" && p.Type?.
TypeId
== "string");
219
.Any(i => i.
TypeId
.Contains("IResourceWithEnvironment"));
529
TargetTypeId = resourceType.
TypeId
,
541
AtsTypeId = resourceType.
TypeId
,
585
TargetTypeId = resourceType.
TypeId
,
597
AtsTypeId = resourceType.
TypeId
,
656
TargetTypeId = resourceType.
TypeId
,
667
AtsTypeId = resourceType.
TypeId
,
674
AtsTypeId = genericBaseTypeRef.
TypeId
,
679
AtsTypeId = genericInterfaceTypeRef.
TypeId
,
840
TargetTypeId = projectType.
TypeId
,
861
TargetTypeId = containerType.
TypeId
,
873
AtsTypeId = projectType.
TypeId
,
878
AtsTypeId = containerType.
TypeId
,
Aspire.Hosting.CodeGeneration.Rust (31)
AtsRustCodeGenerator.cs (31)
375
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId
376
|| IsCancellationTokenTypeId(typeRef.
TypeId
))
386
AtsTypeCategory.Dto => !dtoTypesById.TryGetValue(typeRef.
TypeId
, out var dto)
472
var hasReturn = capability.ReturnType.
TypeId
!= AtsConstants.Void;
605
var wrappedType = MapHandleType(returnTypeRef.
TypeId
);
609
else if (returnTypeRef?.
TypeId
== AtsConstants.CancellationToken)
858
if (targetType.
TypeId
is null)
863
if (!result.TryGetValue(targetType.
TypeId
, out var list))
866
result[targetType.
TypeId
] = list;
905
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
912
AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.
TypeId
),
913
AtsTypeCategory.Enum => MapEnumType(typeRef.
TypeId
),
914
AtsTypeCategory.Handle => MapHandleType(typeRef.
TypeId
),
915
AtsTypeCategory.Dto => MapDtoType(typeRef.
TypeId
),
943
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
950
AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.
TypeId
),
951
AtsTypeCategory.Enum => MapEnumType(typeRef.
TypeId
),
954
AtsTypeCategory.Dto => MapDtoType(typeRef.
TypeId
),
983
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
990
AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.
TypeId
),
991
AtsTypeCategory.Enum => MapEnumType(typeRef.
TypeId
),
992
AtsTypeCategory.Dto => MapDtoType(typeRef.
TypeId
),
1037
var baseType = typeRef.
TypeId
switch
1062
&& typeRef.
TypeId
is not (AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken);
1066
&& typeRef.
TypeId
!= AtsConstants.ReferenceExpressionTypeId
1067
&& !IsCancellationTokenTypeId(typeRef.
TypeId
);
1081
IsCancellationTokenTypeId(parameter.Type?.
TypeId
);
1095
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId
1096
|| IsCancellationTokenTypeId(typeRef.
TypeId
))
1103
handleTypeIds.Add(typeRef.
TypeId
);
1118
typeIds.Add(typeRef.
TypeId
);
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
AtsRustCodeGeneratorTests.cs (2)
160
Assert.Contains(addTestRedis.Parameters, p => p.Name == "name" && p.Type?.
TypeId
== "string");
278
.Any(i => i.
TypeId
.Contains("IResourceWithEnvironment"));
Aspire.Hosting.CodeGeneration.TypeScript (100)
AtsTypeScriptCodeGenerator.cs (46)
134
capability.ReturnType.
TypeId
== AtsConstants.Void ? null : capability.Documentation?.Returns,
135
suppressReturns: capability.ReturnType.
TypeId
== AtsConstants.Void,
375
!_projector.DtoTypesById.TryGetValue(typeRef.
TypeId
, out var dtoType))
390
!_projector.DtoTypesById.TryGetValue(typeRef.
TypeId
, out var dtoType))
396
if (!visitedDtoTypeIds.Add(typeRef.
TypeId
))
407
visitedDtoTypeIds.Remove(typeRef.
TypeId
);
418
private static string? GetReturnTypeId(AtsCapabilityInfo capability) => capability.ReturnType?.
TypeId
;
914
var isVoid = capability.ReturnType == null || capability.ReturnType.
TypeId
== AtsConstants.Void;
917
if (capability.ReturnType != null && _projector.TypesWithPromiseWrappers.Contains(capability.ReturnType.
TypeId
))
919
WriteLine($" {signature.MethodName}({signature.ParameterList}): {_projector.GetPublicPromiseInterfaceName(capability.ReturnType.
TypeId
)};");
1105
if (capability.ReturnsBuilder && capability.ReturnType?.
TypeId
!= null &&
1106
!string.Equals(capability.ReturnType.
TypeId
, builder.TypeId, StringComparison.Ordinal) &&
1107
!string.Equals(capability.ReturnType.
TypeId
, capability.TargetTypeId, StringComparison.Ordinal))
1109
returnTypeId = capability.ReturnType.
TypeId
;
1125
var wrappedReturnTypeId = capability.ReturnType!.
TypeId
;
1191
if (capability.ReturnType?.
TypeId
== AtsConstants.CancellationToken)
1432
if (param.Type is not {
TypeId
: var dtoTypeId })
1502
if (!visitedDtoTypeIds.Add(dtoProperty.Type.
TypeId
))
1518
visitedDtoTypeIds.Remove(dtoProperty.Type.
TypeId
);
1602
if (capability.ReturnsBuilder && capability.ReturnType?.
TypeId
!= null &&
1603
!string.Equals(capability.ReturnType.
TypeId
, builder.TypeId, StringComparison.Ordinal) &&
1604
!string.Equals(capability.ReturnType.
TypeId
, capability.TargetTypeId, StringComparison.Ordinal))
1606
var returnClass = _projector.WrapperClassNames.GetValueOrDefault(capability.ReturnType.
TypeId
)
1607
?? TypeScriptApiProjector.DeriveClassName(capability.ReturnType.
TypeId
);
1775
else if (capability.ReturnType?.
TypeId
== AtsConstants.CancellationToken)
1853
&& callbackParam.CallbackReturnType.
TypeId
!= AtsConstants.Void;
1888
var cbTypeId = callbackParameter.Type.
TypeId
;
2227
if (getter.ReturnType?.
TypeId
!= null && _projector.WrapperClassNames.TryGetValue(getter.ReturnType.
TypeId
, out var wrapperClassName))
2241
if (getter.ReturnType?.
TypeId
== AtsConstants.CancellationToken)
2294
if (getter.ReturnType?.
TypeId
!= null && _projector.WrapperClassNames.TryGetValue(getter.ReturnType.
TypeId
, out var wrapperClassName))
2321
if (getter.ReturnType?.
TypeId
== AtsConstants.CancellationToken)
2342
var handleType = _projector.GetConcreteHandleTypeName(getter.ReturnType!.
TypeId
);
2396
var handleType = _projector.GetConcreteHandleTypeName(getter.ReturnType!.
TypeId
);
2619
var returnTypeId = method.ReturnType!.
TypeId
;
2670
else if (method.ReturnType?.
TypeId
== AtsConstants.CancellationToken)
2732
var returnTypeId = capability.ReturnType!.
TypeId
;
2858
var isVoid = capability.ReturnType == null || capability.ReturnType.
TypeId
== AtsConstants.Void;
2863
var returnWrapperClass = _projector.WrapperClassNames.GetValueOrDefault(capability.ReturnType!.
TypeId
)
2864
?? TypeScriptApiProjector.DeriveClassName(capability.ReturnType.
TypeId
);
2867
var returnHandleType = _projector.GetConcreteHandleTypeName(capability.ReturnType.
TypeId
);
3000
if (capability.ReturnType?.
TypeId
== AtsConstants.CancellationToken)
3065
var isVoid = capability.ReturnType == null || capability.ReturnType.
TypeId
== AtsConstants.Void;
3069
_projector.WrapperClassNames.GetValueOrDefault(capability.ReturnType!.
TypeId
)
3070
?? TypeScriptApiProjector.DeriveClassName(capability.ReturnType.
TypeId
));
TypeScriptApiProjector.cs (54)
134
.DistinctBy(typeRef => typeRef.
TypeId
, StringComparer.Ordinal)
135
.GroupBy(typeRef => DeriveClassName(typeRef.
TypeId
), StringComparer.Ordinal)
222
_typesWithPromiseWrappers.Add(alias.
TypeId
);
223
_wrapperClassNames[alias.
TypeId
] = builder.BuilderClassName;
224
_concreteTypeIds[alias.
TypeId
] = builder.TypeId;
225
_typeRefsById[alias.
TypeId
] = builder.TargetType ?? alias;
407
return capability.ReturnType is {
TypeId
: { } returnTypeId }
419
if (capability.ReturnType is { } returnType && _typesWithPromiseWrappers.Contains(returnType.
TypeId
))
421
return GetPublicPromiseInterfaceName(returnType.
TypeId
);
424
if (capability.ReturnType is null || capability.ReturnType.
TypeId
== AtsConstants.Void)
773
AtsTypeCategory.Dto when value is JsonObject obj && _dtoTypesById.TryGetValue(typeRef.
TypeId
, out var dtoInfo)
1307
var returnTypeId = capability.ReturnType?.
TypeId
;
1659
if (typeRef.
TypeId
== AtsConstants.ReferenceExpressionTypeId)
1664
if (typeRef.
TypeId
== InputTypeTypeId)
1669
if (typeRef.
TypeId
== InteractionInputTypeId)
1674
if (typeRef.
TypeId
== InteractionInputCollectionTypeId)
1680
if (_wrapperClassNames.TryGetValue(typeRef.
TypeId
, out var wrapperClassName))
1687
AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.
TypeId
),
1688
AtsTypeCategory.Enum => MapEnumType(typeRef.
TypeId
),
1689
AtsTypeCategory.Handle => GetWrapperOrHandleName(typeRef.
TypeId
),
1690
AtsTypeCategory.Dto => GetDtoInterfaceName(typeRef.
TypeId
),
1711
return typeRef.
TypeId
is AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken
1871
if (IsHandleType(typeRef) && _wrapperClassNames.TryGetValue(typeRef!.
TypeId
, out var className))
1877
if (typeRef?.
TypeId
== InteractionInputCollectionTypeId)
1955
if (!IsAssignableToInterface(candidateTypeRef, typeRef.
TypeId
) ||
1956
!_wrapperClassNames.TryGetValue(candidateTypeRef.
TypeId
, out var wrapperClassName))
1977
if (string.Equals(candidateTypeRef.
TypeId
, interfaceTypeId, StringComparison.Ordinal))
2007
internal static bool IsCancellationTokenType(AtsTypeRef? typeRef) => typeRef?.
TypeId
== AtsConstants.CancellationToken;
2323
var aTypeId = a.Type?.
TypeId
;
2324
var bTypeId = b.Type?.
TypeId
;
2348
if (!string.Equals(aCallbackParams[i].Type.
TypeId
, bCallbackParams[i].Type.
TypeId
, StringComparison.Ordinal))
2355
var aReturnTypeId = a.CallbackReturnType?.
TypeId
;
2356
var bReturnTypeId = b.CallbackReturnType?.
TypeId
;
2482
if (typeRef?.
TypeId
is { } typeId && _typesWithPromiseWrappers.Contains(typeId))
2507
if (capability.ReturnsBuilder && capability.ReturnType?.
TypeId
!= null &&
2508
!string.Equals(capability.ReturnType.
TypeId
, builder.TypeId, StringComparison.Ordinal) &&
2509
!string.Equals(capability.ReturnType.
TypeId
, capability.TargetTypeId, StringComparison.Ordinal))
2511
return GetPublicPromiseInterfaceName(capability.ReturnType.
TypeId
);
2537
if (IsHandleType(typeRef) && _wrapperClassNames.ContainsKey(typeRef.
TypeId
))
2542
if (typeRef.
TypeId
== InteractionInputCollectionTypeId)
2682
if (!capabilitiesByTypeId.TryGetValue(expandedType.
TypeId
, out var list))
2685
capabilitiesByTypeId[expandedType.
TypeId
] = list;
2687
typeRefsByTypeId[expandedType.
TypeId
] = expandedType;
2904
return IsTypeInHierarchy(retainedType, candidateType.
TypeId
) ||
2905
IsTypeInHierarchy(candidateType, retainedType.
TypeId
);
2911
string.Equals(interfaceType.
TypeId
, typeId, StringComparison.Ordinal) ||
2918
(string.Equals(baseType.
TypeId
, typeId, StringComparison.Ordinal) ||
2938
if (!string.IsNullOrEmpty(typeRef.
TypeId
) && typeRef.Category == AtsTypeCategory.Handle)
2940
typeRefs.TryAdd(typeRef.
TypeId
, typeRef);
3081
if (_typesWithPromiseWrappers.Contains(returnType.
TypeId
))
3083
var className = _wrapperClassNames.GetValueOrDefault(returnType.
TypeId
)
3084
?? DeriveClassName(returnType.
TypeId
);
3107
var returnType = callbackReturnType == null || callbackReturnType.
TypeId
== AtsConstants.Void
Aspire.Hosting.CodeGeneration.TypeScript.Tests (40)
AtsTypeScriptCodeGeneratorTests.cs (40)
163
Assert.Contains(addTestRedis.Parameters, p => p.Name == "name" && p.Type?.
TypeId
== "string");
309
Assert.Equal("string", nameGetterCapability.ReturnType?.
TypeId
);
319
Assert.Equal("Aspire.Hosting.CodeGeneration.TypeScript.Tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests.TestTypes.TestCallbackContext", nameSetterCapability.ReturnType?.
TypeId
); // Returns context for fluent chaining
327
Assert.Equal("number", valueGetterCapability.ReturnType?.
TypeId
);
410
t.
TypeId
== "Aspire.Hosting.CodeGeneration.TypeScript.Tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests.TestTypes.TestRedisResource");
546
Assert.Contains(withBrowserLogs.Parameters, p => p.Name == "browser" && p.Type?.
TypeId
== "string" && p.IsOptional);
547
Assert.Contains(withBrowserLogs.Parameters, p => p.Name == "profile" && p.Type?.
TypeId
== "string" && p.IsOptional);
561
c.ExpandedTargetTypes.Any(t => t.
TypeId
.Contains("ContainerResource")))
566
TargetType = c.TargetType != null ? new { c.TargetType.
TypeId
, c.TargetType.IsInterface } : null,
568
.Where(t => t.
TypeId
.Contains("ContainerResource"))
569
.Select(t => new { t.
TypeId
, t.IsInterface })
609
if (expandedType.
TypeId
.Contains("ContainerResource"))
612
$"Capability '{cap.CapabilityId}' ExpandedTargetType '{expandedType.
TypeId
}' has IsInterface = true");
635
Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.
TypeId
);
664
Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.
TypeId
);
672
.FirstOrDefault(t => t.
TypeId
.Contains("TestRedisResource"));
692
Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.
TypeId
);
700
.FirstOrDefault(t => t.
TypeId
.Contains("TestRedisResource"));
718
Assert.Contains("ContainerResource", withBindMount.TargetType.
TypeId
);
726
.FirstOrDefault(t => t.
TypeId
.Contains("ContainerResource") && !t.
TypeId
.Contains("IContainer"));
899
$"Expanded type '{expandedType.
TypeId
}' should be a concrete type, not an interface");
923
Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.
TypeId
);
932
.FirstOrDefault(t => t.
TypeId
.Contains("TestRedisResource"));
1105
.Any(i => i.
TypeId
.Contains("IResourceWithEnvironment"));
1217
.ReturnType!.
TypeId
;
1741
Assert.Equal(expectedTypes.Select(GetAtsTypeId), parameter.CallbackParameters.Select(p => p.Type?.
TypeId
));
1751
Assert.Equal(GetAtsTypeId(parameterType), parameter.Type?.
TypeId
);
1891
Assert.Equal("any", valueParam.Type.
TypeId
);
2039
Assert.Equal(AtsConstants.CancellationToken, ctParam.Type.
TypeId
);
2074
Assert.Equal(AtsConstants.CancellationToken, operationParam.CallbackParameters[0].Type?.
TypeId
);
2093
Assert.Equal(AtsConstants.TimeSpan, timeoutParam.Type?.
TypeId
);
2097
Assert.Equal(AtsConstants.CancellationToken, ctParam.Type?.
TypeId
);
2376
var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.
TypeId
).ToList();
2407
var expandedTypeIds = capability.ExpandedTargetTypes.Select(t => t.
TypeId
).ToList();
2586
TargetTypeId = targetType.
TypeId
,
2598
TargetTypeId = targetType.
TypeId
,
2610
TargetTypeId = targetType.
TypeId
,
2622
TargetTypeId = targetType.
TypeId
,
3022
TargetTypeId = targetType.
TypeId
,
Aspire.Hosting.RemoteHost (40)
Ats\AtsMarshaller.cs (5)
144
if (typeRef.
TypeId
== AtsConstants.CancellationToken && value is CancellationToken cancellationToken)
150
if (typeRef.
TypeId
== TypeSystem.AtsConstants.Any)
157
AtsTypeCategory.Handle => _handles.Marshal(value, typeRef.
TypeId
),
162
AtsTypeCategory.List => _handles.Marshal(value, typeRef.
TypeId
),
163
AtsTypeCategory.Dict => _handles.Marshal(value, typeRef.
TypeId
),
AtsCapabilityScanner.cs (26)
612
enumTypes.TryAdd(typeRef.
TypeId
, typeRef.ClrType);
694
if (typeRef.Category == AtsTypeCategory.Unknown && validTypes.Contains(typeRef.
TypeId
))
791
return typeRef.
TypeId
;
900
AddToCompatibilityMap(typeToCompatibleTypes, iface.
TypeId
, concreteTypeRef);
906
AddToCompatibilityMap(typeToCompatibleTypes, baseType.
TypeId
, concreteTypeRef);
939
.SelectMany(c => c.ExpandedTargetTypes.Select(t => (Target: t.
TypeId
, Capability: c)))
1011
.Where(t => !targetIds.Contains(t.
TypeId
))
1312
AtsTypeCategory.Primitive => typeRef.
TypeId
!= AtsConstants.CancellationToken && typeRef.
TypeId
!= AtsConstants.Void,
1335
if (!visitedDtoTypeIds.Add(typeRef.
TypeId
))
1365
_ = visitedDtoTypeIds.Remove(typeRef.
TypeId
);
1621
TypeId = AtsConstants.DictTypeId(keyTypeRef.
TypeId
, valueTypeRef.
TypeId
),
1627
propertyTypeId = propertyTypeRef.
TypeId
;
1640
propertyTypeId = propertyTypeRef.
TypeId
;
1645
propertyTypeId = propertyTypeRef.
TypeId
;
2029
var firstParamTypeId = extendsTypeRef?.
TypeId
?? MapToAtsTypeId(firstParamType, assemblyExportedTypeCache);
2603
TypeId = typeRef.
TypeId
,
2747
TypeId = AtsConstants.DictTypeId(keyTypeRef.
TypeId
, valueTypeRef.
TypeId
),
2770
TypeId = AtsConstants.DictTypeId(keyTypeRef.
TypeId
, valueTypeRef.
TypeId
),
2792
TypeId = AtsConstants.ListTypeId(elementTypeRef.
TypeId
),
2812
TypeId = AtsConstants.ArrayTypeId(elementTypeRef.
TypeId
),
2857
TypeId = AtsConstants.ArrayTypeId(elementTypeRef.
TypeId
),
3316
TypeId = string.Join("|", unionTypes.Select(u => u.
TypeId
)),
AtsContextFilter.cs (8)
174
yield return targetType.
TypeId
;
179
yield return expandedTargetType.
TypeId
;
393
if (typeRef.Category == AtsTypeCategory.Handle && !string.IsNullOrEmpty(typeRef.
TypeId
))
395
referencedHandleTypes.TryAdd(typeRef.
TypeId
, typeRef);
425
if (handleTypesById.TryGetValue(typeRef.
TypeId
, out var handleType) && includedHandleTypeIds.Add(handleType.AtsTypeId))
430
if (dtoTypesById.TryGetValue(typeRef.
TypeId
, out var dtoType) && includedDtoTypeIds.Add(dtoType.TypeId))
435
if (enumTypesById.ContainsKey(typeRef.
TypeId
))
437
includedEnumTypeIds.Add(typeRef.
TypeId
);
CodeGeneration\CodeGenerationService.cs (1)
141
TypeId = t.
TypeId
,
Aspire.Hosting.RemoteHost.Tests (22)
AtsCapabilityScannerTests.cs (20)
159
Assert.Equal("string[]", itemsType.
TypeId
);
164
Assert.Equal("string[]", enumerableReturnCapability.ReturnType.
TypeId
);
178
Assert.Equal(expectedElementTypeId, typeRef.ElementType.
TypeId
);
193
Assert.Contains(parameter.Type.UnionTypes!, type => type.
TypeId
== AtsConstants.String);
324
Assert.Contains(resourceParameter.Type!.UnionTypes!, type => type.
TypeId
== "string");
325
Assert.Contains(resourceParameter.Type.UnionTypes!, type => type.
TypeId
== "Aspire.Hosting/Aspire.Hosting.ApplicationModel.IResource");
392
Assert.Equal(AtsTypeMapping.DeriveTypeId(typeof(HttpCommandExportOptions)), optionsParameter.Type.
TypeId
);
407
Assert.Equal(AtsTypeMapping.DeriveTypeId(typeof(HttpCommandPrepareRequestContext)), callbackParameter.Type.
TypeId
);
409
Assert.Equal(AtsTypeMapping.DeriveTypeId(typeof(HttpCommandRequestExportData)), prepareRequestProperty.CallbackReturnType?.
TypeId
);
438
t => t.
TypeId
== AtsTypeMapping.DeriveTypeId(typeof(DerivedExportedProperties)));
457
Assert.Equal(AtsConstants.String, nameGetter.ReturnType.
TypeId
);
462
Assert.Equal(AtsConstants.String, descriptionGetter.ReturnType.
TypeId
);
483
Assert.Equal(AtsConstants.String, nullableString.Type.
TypeId
);
488
Assert.Equal(AtsConstants.String, requiredString.Type.
TypeId
);
493
Assert.Equal(AtsConstants.Number, nullableNumber.Type.
TypeId
);
498
Assert.Equal(AtsConstants.Number, requiredNumber.Type.
TypeId
);
517
Assert.DoesNotContain(genericCapability.ExpandedTargetTypes, t => t.
TypeId
== shadowedTypeId);
518
Assert.Contains(genericCapability.ExpandedTargetTypes, t => t.
TypeId
== otherTypeId);
519
Assert.Contains(specificCapability.ExpandedTargetTypes, t => t.
TypeId
== shadowedTypeId);
574
Assert.Equal(AtsTypeMapping.DeriveTypeId(typeof(AssemblyLevelExportedTestType)), parameter.Type.
TypeId
);
AtsContextFilterTests.cs (2)
230
Assert.Equal("Aspire.Hosting/Aspire.Hosting.DistributedApplication", supportParameter.Type?.
TypeId
);
231
Assert.Equal(AtsConstants.Void, filteredSupport.ReturnType.
TypeId
);