46 writes to ClrType
Aspire.Hosting.CodeGeneration.Python.Tests (7)
AtsPythonCodeGeneratorTests.cs (7)
499ClrType = typeof(KeywordResource), 555ClrType = typeof(AcronymResource), 614ClrType = genericBaseType, 621ClrType = genericInterfaceType, 629ClrType = typeof(GenericResource), 811ClrType = typeof(CollidingAlphaResource), 818ClrType = typeof(CollidingBetaResource),
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1381ClrType = resourceType, 1627ClrType = typeof(TResource),
Aspire.Hosting.RemoteHost (23)
Ats\AtsMarshaller.cs (1)
444ClrType = type,
AtsCapabilityScanner.cs (21)
886ClrType = typeInfo.ClrType, 1097? new AtsTypeRef { TypeId = "callback", ClrType = prop.PropertyType, Category = AtsTypeCategory.Callback } 2604ClrType = typeRef.ClrType, 2683return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2689return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2697ClrType = type, 2699KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2700ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2710ClrType = type, 2712ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive } 2725ClrType = type, 2748ClrType = type, 2771ClrType = type, 2793ClrType = type, 2813ClrType = type, 2858ClrType = type, 2874ClrType = type, 2886ClrType = type, 2896ClrType = type, 2991ClrType = iface, 3058ClrType = type,
AtsContextFilter.cs (1)
325ClrType = handleType.ClrType,
Aspire.Hosting.RemoteHost.Tests (14)
AtsContextFilterTests.cs (14)
205ClrType = referencedHandleType.ClrType, 277ClrType = foreignEnum.ClrType, 295ClrType = foreignCallbackEnum.ClrType, 435ClrType = typeof(TestMode), 488ClrType = exportedValueOnlyEnumType.ClrType, 508ClrType = selectedHandleType.ClrType, 518ClrType = referencedCoreDtoType.ClrType, 528ClrType = referencedCoreEnumType.ClrType, 536ClrType = referencedCoreHandleType.ClrType, 544ClrType = selectedHandleType.ClrType, 561ClrType = unrelatedCoreHandleType.ClrType, 579ClrType = typeof(string), 592ClrType = exportedValueOnlyDtoType.ClrType, 605ClrType = typeof(string),
24 references to ClrType
Aspire.Hosting.CodeGeneration.Python (8)
AtsPythonCodeGenerator.cs (8)
1472if (builder.TargetType?.ClrType!.IsGenericType == true) 1554if (i.ClrType!.IsGenericType) 1556if (i.ClrType.GenericTypeArguments == null || i.ClrType.GenericTypeArguments.Length != 1) 1560var genericSubType = i.ClrType.GenericTypeArguments[0]; 2033var typeIdReference = typeRef.ClrType!.IsGenericType ? typeId.Split('`')[0] + "T" : typeId; 2253if (typeRef.ClrType is { } clrType) 2430if (typeRef.ClrType?.IsGenericType == true)
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptApiProjector.cs (4)
1551return GetOwningAssemblyName(capability.CapabilityId, capability.TargetType?.ClrType?.Assembly.GetName().Name); 1559=> GetOwningAssemblyName(typeId, _typeRefsById.GetValueOrDefault(typeId)?.ClrType?.Assembly.GetName().Name); 2898if (retainedType.ClrType is { } retainedClrType && candidateType.ClrType is { } candidateClrType)
Aspire.Hosting.RemoteHost (8)
Ats\CapabilityDispatcher.cs (1)
919.Select(static unionType => unionType.ClrType)
AtsCapabilityScanner.cs (5)
610if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 612enumTypes.TryAdd(typeRef.TypeId, typeRef.ClrType); 1330if (typeRef.ClrType is null) 1342foreach (var property in typeRef.ClrType.GetProperties(BindingFlags.Public | BindingFlags.Instance)) 2604ClrType = typeRef.ClrType,
AtsContextFilter.cs (2)
515if (capability.TargetType?.ClrType is not null) 517return IsSelectedAssembly(capability.TargetType.ClrType.Assembly, assemblyNames);
Aspire.Hosting.RemoteHost.Tests (1)
AtsCapabilityScannerTests.cs (1)
192Assert.Contains(parameter.Type!.UnionTypes!, type => type.ClrType == typeof(TestUnionEnum));
Aspire.TypeSystem (3)
AtsCapabilityInfo.cs (3)
76public bool IsResourceBuilder => HostingTypeHelpers.IsResourceType(ClrType); 81public bool IsDistributedApplicationBuilder => HostingTypeHelpers.IsDistributedApplicationBuilderType(ClrType); 86public bool IsDistributedApplication => HostingTypeHelpers.IsDistributedApplicationType(ClrType);