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