56 references to DeriveTypeId
Aspire.Hosting.CodeGeneration.Go.Tests (2)
AtsGoCodeGeneratorTests.cs (2)
2332
Environment = { ["TEST_RESOURCE_BUILDER_TYPE"] = AtsTypeMapping.
DeriveTypeId
(typeof(IResourceBuilder<ContainerResource>)) }
2471
Environment = { ["TEST_RESOURCE_TYPE"] = AtsTypeMapping.
DeriveTypeId
(typeof(IResource)) }
Aspire.Hosting.CodeGeneration.TypeScript.Tests (6)
AtsTypeScriptCodeGeneratorTests.cs (6)
1457
AtsTypeMapping.
DeriveTypeId
(typeof(global::Aspire.Hosting.Kubernetes.Resources.PersistentVolumeClaim)),
1497
var typeId = AtsTypeMapping.
DeriveTypeId
(typeof(T));
2652
var legacyTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ProjectResourceOptions));
2967
var javaScriptAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.JavaScriptAppResource));
2968
var nodeAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.NodeAppResource));
2969
var viteAppTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(Aspire.Hosting.JavaScript.ViteAppResource));
Aspire.Hosting.Native.CodeGeneration (14)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (14)
1116
? AtsTypeMapping.
DeriveTypeId
(exportAttr.Type)
1117
: AtsTypeMapping.
DeriveTypeId
(type);
1153
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
2554
return AtsTypeMapping.
DeriveTypeId
(constraints[0]);
2558
return AtsTypeMapping.
DeriveTypeId
(resourceType);
2578
return AtsTypeMapping.
DeriveTypeId
(type);
2584
return AtsTypeMapping.
DeriveTypeId
(type);
2988
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
3000
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
3010
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
3098
var ifaceTypeId = AtsTypeMapping.
DeriveTypeId
(iface);
3154
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
3211
var typeId = AtsTypeMapping.
DeriveTypeId
(constraint);
3253
var typeId = AtsTypeMapping.
DeriveTypeId
(resourceType);
Aspire.Hosting.RemoteHost (20)
Ats\AtsMarshaller.cs (6)
212
var typeId = AtsTypeMapping.
DeriveTypeId
(declaredType);
427
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
462
AtsTypeCategory.Handle => _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type)),
463
_ => _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type))
500
return _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type));
515
return _handles.Marshal(value, AtsTypeMapping.
DeriveTypeId
(type));
AtsCapabilityScanner.cs (14)
1116
? AtsTypeMapping.
DeriveTypeId
(exportAttr.Type)
1117
: AtsTypeMapping.
DeriveTypeId
(type);
1153
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
2554
return AtsTypeMapping.
DeriveTypeId
(constraints[0]);
2558
return AtsTypeMapping.
DeriveTypeId
(resourceType);
2578
return AtsTypeMapping.
DeriveTypeId
(type);
2584
return AtsTypeMapping.
DeriveTypeId
(type);
2988
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
3000
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
3010
TypeId = AtsTypeMapping.
DeriveTypeId
(type),
3098
var ifaceTypeId = AtsTypeMapping.
DeriveTypeId
(iface);
3154
var typeId = AtsTypeMapping.
DeriveTypeId
(type);
3211
var typeId = AtsTypeMapping.
DeriveTypeId
(constraint);
3253
var typeId = AtsTypeMapping.
DeriveTypeId
(resourceType);
Aspire.Hosting.RemoteHost.Tests (14)
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)
299
AtsTypeId = AtsTypeMapping.
DeriveTypeId
(typeof(ITestCallbackHandle)),
313
Assert.Equal(AtsTypeMapping.
DeriveTypeId
(typeof(ITestCallbackHandle)), handle["$type"]?.GetValue<string>());
CapabilityDispatcherTests.cs (1)
94
var handleId = handles.Register(resource, AtsTypeMapping.
DeriveTypeId
(resource.Resource.GetType()));