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