36 references to DeriveTypeId
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
AtsTypeScriptCodeGeneratorTests.cs (3)
2320
var javaScriptAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.JavaScriptAppResource));
2321
var nodeAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.NodeAppResource));
2322
var viteAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.ViteAppResource));
Aspire.Hosting.RemoteHost (20)
Ats\AtsMarshaller.cs (6)
191
var typeId = AtsTypeMapping.
DeriveTypeId
(declaredType);
443
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
478
AtsTypeCategory.Handle => _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type)),
479
_ => _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type))
516
return _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type));
531
return _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type));
AtsCapabilityScanner.cs (14)
1036
? AtsTypeMapping.
DeriveTypeId
(exportAttr.Type)
1037
: AtsTypeMapping.
DeriveTypeId
(type);
1072
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
2460
return AtsTypeMapping.
DeriveTypeId
(constraints[0]);
2464
return AtsTypeMapping.
DeriveTypeId
(resourceType);
2484
return AtsTypeMapping.
DeriveTypeId
(type);
2490
return AtsTypeMapping.
DeriveTypeId
(type);
2872
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
2884
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
2894
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
2982
var ifaceTypeId = AtsTypeMapping.
DeriveTypeId
(iface);
3038
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
3095
var typeId = AtsTypeMapping.
DeriveTypeId
(constraint);
3137
var typeId = AtsTypeMapping.
DeriveTypeId
(resourceType);
Aspire.Hosting.RemoteHost.Tests (13)
AtsCapabilityScannerTests.cs (11)
378
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandExportOptions)), optionsParameter.Type.TypeId);
380
var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandExportOptions)));
393
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandPrepareRequestContext)), callbackParameter.Type.TypeId);
395
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandRequestExportData)), prepareRequestProperty.CallbackReturnType?.TypeId);
407
var requestDataDto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandRequestExportData)));
424
t => t.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(DerivedExportedProperties)));
493
var shadowedTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ShadowedEnvironmentResource));
494
var otherTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(OtherEnvironmentResource));
560
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(AssemblyLevelExportedTestType)), parameter.Type.TypeId);
562
AtsTypeMapping.
DeriveTypeId
(typeof(AssemblyLevelExportedTestType)),
669
var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(InitPropertiesDto)));
CallbackProxyTests.cs (2)
157
AtsTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ITestCallbackHandle)),
171
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(ITestCallbackHandle)), handle["$type"]?.GetValue<string>());