37 references to DeriveTypeId
Aspire.Hosting.CodeGeneration.TypeScript.Tests (4)
AtsTypeScriptCodeGeneratorTests.cs (4)
2386
var legacyTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ProjectResourceOptions));
2701
var javaScriptAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.JavaScriptAppResource));
2702
var nodeAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.NodeAppResource));
2703
var viteAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.ViteAppResource));
Aspire.Hosting.RemoteHost (20)
Ats\AtsMarshaller.cs (6)
211
var typeId = AtsTypeMapping.
DeriveTypeId
(declaredType);
426
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
461
AtsTypeCategory.Handle => _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type)),
462
_ => _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type))
499
return _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type));
514
return _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type));
AtsCapabilityScanner.cs (14)
1110
? AtsTypeMapping.
DeriveTypeId
(exportAttr.Type)
1111
: AtsTypeMapping.
DeriveTypeId
(type);
1146
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
2541
return AtsTypeMapping.
DeriveTypeId
(constraints[0]);
2545
return AtsTypeMapping.
DeriveTypeId
(resourceType);
2565
return AtsTypeMapping.
DeriveTypeId
(type);
2571
return AtsTypeMapping.
DeriveTypeId
(type);
2975
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
2987
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
2997
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
3085
var ifaceTypeId = AtsTypeMapping.
DeriveTypeId
(iface);
3141
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
3198
var typeId = AtsTypeMapping.
DeriveTypeId
(constraint);
3240
var typeId = AtsTypeMapping.
DeriveTypeId
(resourceType);
Aspire.Hosting.RemoteHost.Tests (13)
AtsCapabilityScannerTests.cs (11)
426
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandExportOptions)), optionsParameter.Type.TypeId);
428
var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandExportOptions)));
441
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandPrepareRequestContext)), callbackParameter.Type.TypeId);
443
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandRequestExportData)), prepareRequestProperty.CallbackReturnType?.TypeId);
455
var requestDataDto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandRequestExportData)));
472
t => t.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(DerivedExportedProperties)));
617
var shadowedTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ShadowedEnvironmentResource));
618
var otherTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(OtherEnvironmentResource));
684
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(AssemblyLevelExportedTestType)), parameter.Type.TypeId);
686
AtsTypeMapping.
DeriveTypeId
(typeof(AssemblyLevelExportedTestType)),
793
var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(InitPropertiesDto)));
CallbackProxyTests.cs (2)
200
AtsTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ITestCallbackHandle)),
214
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(ITestCallbackHandle)), handle["$type"]?.GetValue<string>());