58 references to AtsTypeMapping
Aspire.Hosting.CodeGeneration.Go.Tests (2)
AtsGoCodeGeneratorTests.cs (2)
1687
Environment = { ["TEST_RESOURCE_BUILDER_TYPE"] =
AtsTypeMapping
.DeriveTypeId(typeof(IResourceBuilder<ContainerResource>)) }
1826
Environment = { ["TEST_RESOURCE_TYPE"] =
AtsTypeMapping
.DeriveTypeId(typeof(IResource)) }
Aspire.Hosting.CodeGeneration.TypeScript.Tests (6)
AtsTypeScriptCodeGeneratorTests.cs (6)
1458
AtsTypeMapping
.DeriveTypeId(typeof(global::Aspire.Hosting.Kubernetes.Resources.PersistentVolumeClaim)),
1498
var typeId =
AtsTypeMapping
.DeriveTypeId(typeof(T));
2624
var legacyTypeId =
AtsTypeMapping
.DeriveTypeId(typeof(ProjectResourceOptions));
2939
var javaScriptAppTypeId =
AtsTypeMapping
.DeriveTypeId(typeof(Aspire.Hosting.JavaScript.JavaScriptAppResource));
2940
var nodeAppTypeId =
AtsTypeMapping
.DeriveTypeId(typeof(Aspire.Hosting.JavaScript.NodeAppResource));
2941
var viteAppTypeId =
AtsTypeMapping
.DeriveTypeId(typeof(Aspire.Hosting.JavaScript.ViteAppResource));
Aspire.Hosting.Native.CodeGeneration (15)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (15)
1110
?
AtsTypeMapping
.DeriveTypeId(exportAttr.Type)
1111
:
AtsTypeMapping
.DeriveTypeId(type);
1146
var typeId =
AtsTypeMapping
.DeriveTypeId(type);
1624
var typeId =
AtsTypeMapping
.DeriveTypeId(contextAssemblyName, fullName);
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 (21)
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 (15)
1110
?
AtsTypeMapping
.DeriveTypeId(exportAttr.Type)
1111
:
AtsTypeMapping
.DeriveTypeId(type);
1146
var typeId =
AtsTypeMapping
.DeriveTypeId(type);
1624
var typeId =
AtsTypeMapping
.DeriveTypeId(contextAssemblyName, fullName);
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 (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)
238
AtsTypeId =
AtsTypeMapping
.DeriveTypeId(typeof(ITestCallbackHandle)),
252
Assert.Equal(
AtsTypeMapping
.DeriveTypeId(typeof(ITestCallbackHandle)), handle["$type"]?.GetValue<string>());
CapabilityDispatcherTests.cs (1)
35
var handleId = handles.Register(resource,
AtsTypeMapping
.DeriveTypeId(resource.Resource.GetType()));