37 references to DeriveTypeId
Aspire.Hosting.CodeGeneration.TypeScript.Tests (4)
AtsTypeScriptCodeGeneratorTests.cs (4)
2241
var legacyTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ProjectResourceOptions));
2553
var javaScriptAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.JavaScriptAppResource));
2554
var nodeAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.NodeAppResource));
2555
var viteAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.ViteAppResource));
Aspire.Hosting.RemoteHost (20)
Ats\AtsMarshaller.cs (6)
211
var typeId = AtsTypeMapping.
DeriveTypeId
(declaredType);
463
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
498
AtsTypeCategory.Handle => _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type)),
499
_ => _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type))
536
return _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type));
551
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);
2954
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
2966
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
2976
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
3064
var ifaceTypeId = AtsTypeMapping.
DeriveTypeId
(iface);
3120
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
3177
var typeId = AtsTypeMapping.
DeriveTypeId
(constraint);
3219
var typeId = AtsTypeMapping.
DeriveTypeId
(resourceType);
Aspire.Hosting.RemoteHost.Tests (13)
AtsCapabilityScannerTests.cs (11)
405
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandExportOptions)), optionsParameter.Type.TypeId);
407
var dto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandExportOptions)));
420
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandPrepareRequestContext)), callbackParameter.Type.TypeId);
422
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandRequestExportData)), prepareRequestProperty.CallbackReturnType?.TypeId);
434
var requestDataDto = Assert.Single(result.DtoTypes, d => d.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(HttpCommandRequestExportData)));
451
t => t.TypeId == AtsTypeMapping.
DeriveTypeId
(typeof(DerivedExportedProperties)));
596
var shadowedTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ShadowedEnvironmentResource));
597
var otherTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(OtherEnvironmentResource));
663
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(AssemblyLevelExportedTestType)), parameter.Type.TypeId);
665
AtsTypeMapping.
DeriveTypeId
(typeof(AssemblyLevelExportedTestType)),
772
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>());