74 writes to ClrType
Aspire.Hosting.CodeGeneration.Python.Tests (7)
AtsPythonCodeGeneratorTests.cs (7)
869ClrType = typeof(KeywordResource), 925ClrType = typeof(AcronymResource), 984ClrType = genericBaseType, 991ClrType = genericInterfaceType, 999ClrType = typeof(GenericResource), 1181ClrType = typeof(CollidingAlphaResource), 1188ClrType = typeof(CollidingBetaResource),
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1735ClrType = resourceType, 1996ClrType = typeof(TResource),
Aspire.Hosting.Native.CodeGeneration (21)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (21)
960ClrType = typeInfo.ClrType, 1171? new AtsTypeRef { TypeId = "callback", ClrType = prop.PropertyType, Category = AtsTypeCategory.Callback } 2706ClrType = typeRef.ClrType, 2785return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2791return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2799ClrType = type, 2801KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2802ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2812ClrType = type, 2814ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive } 2827ClrType = type, 2850ClrType = type, 2873ClrType = type, 2895ClrType = type, 2915ClrType = type, 2960ClrType = type, 2976ClrType = type, 2988ClrType = type, 2998ClrType = type, 3093ClrType = iface, 3160ClrType = type,
Aspire.Hosting.RemoteHost (23)
Ats\AtsMarshaller.cs (1)
427ClrType = type,
AtsCapabilityScanner.cs (21)
960ClrType = typeInfo.ClrType, 1171? new AtsTypeRef { TypeId = "callback", ClrType = prop.PropertyType, Category = AtsTypeCategory.Callback } 2706ClrType = typeRef.ClrType, 2785return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2791return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2799ClrType = type, 2801KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2802ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2812ClrType = type, 2814ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive } 2827ClrType = type, 2850ClrType = type, 2873ClrType = type, 2895ClrType = type, 2915ClrType = type, 2960ClrType = type, 2976ClrType = type, 2988ClrType = type, 2998ClrType = type, 3093ClrType = iface, 3160ClrType = type,
AtsContextFilter.cs (1)
325ClrType = handleType.ClrType,
Aspire.Hosting.RemoteHost.Tests (21)
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),
AtsMarshallerTests.cs (7)
175new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 176new AtsTypeRef { TypeId = AtsConstants.Number, ClrType = typeof(int), Category = AtsTypeCategory.Primitive }, 177new AtsTypeRef { TypeId = AtsConstants.Boolean, ClrType = typeof(bool), Category = AtsTypeCategory.Primitive } 198new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 199new AtsTypeRef { TypeId = "test/IResource", ClrType = typeof(IResource), Category = AtsTypeCategory.Handle } 220new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 221new AtsTypeRef { TypeId = AtsConstants.Boolean, ClrType = typeof(bool), Category = AtsTypeCategory.Primitive }
35 references to ClrType
Aspire.Hosting.CodeGeneration.Go (2)
AtsGoCodeGenerator.ApiProjection.cs (2)
1032return GetOwningAssemblyName(capability.CapabilityId, capability.TargetType?.ClrType?.Assembly.GetName().Name); 1116if (typeRef.Category == AtsTypeCategory.Handle && typeRef.ClrType is { } clrType)
Aspire.Hosting.CodeGeneration.Python (8)
AtsPythonCodeGenerator.cs (8)
1487if (builder.TargetType?.ClrType!.IsGenericType == true) 1569if (i.ClrType!.IsGenericType) 1571if (i.ClrType.GenericTypeArguments == null || i.ClrType.GenericTypeArguments.Length != 1) 1575var genericSubType = i.ClrType.GenericTypeArguments[0]; 2048var typeIdReference = typeRef.ClrType!.IsGenericType ? typeId.Split('`')[0] + "T" : typeId; 2268if (typeRef.ClrType is { } clrType) 2445if (typeRef.ClrType?.IsGenericType == true)
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptApiProjector.cs (4)
1555return GetOwningAssemblyName(capability.CapabilityId, capability.TargetType?.ClrType?.Assembly.GetName().Name); 1563=> GetOwningAssemblyName(typeId, _typeRefsById.GetValueOrDefault(typeId)?.ClrType?.Assembly.GetName().Name); 2902if (retainedType.ClrType is { } retainedClrType && candidateType.ClrType is { } candidateClrType)
Aspire.Hosting.Native.CodeGeneration (8)
NativeCSharpProjection.cs (3)
246"int" or "integer" or "number" when type.ClrType == typeof(int) => "int", 247"long" or "number" when type.ClrType == typeof(long) => "long", 249_ => throw new NotSupportedException($"Unsupported native primitive: {type.TypeId} ({type.ClrType}).")
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (5)
684if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 686enumTypes.TryAdd(typeRef.TypeId, typeRef.ClrType); 1404if (typeRef.ClrType is null) 1416foreach (var property in typeRef.ClrType.GetProperties(BindingFlags.Public | BindingFlags.Instance)) 2706ClrType = typeRef.ClrType,
Aspire.Hosting.RemoteHost (9)
Ats\AtsMarshaller.cs (1)
177if (member.ClrType?.IsInstanceOfType(value) == true)
Ats\CapabilityDispatcher.cs (1)
946.Select(static unionType => unionType.ClrType)
AtsCapabilityScanner.cs (5)
684if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 686enumTypes.TryAdd(typeRef.TypeId, typeRef.ClrType); 1404if (typeRef.ClrType is null) 1416foreach (var property in typeRef.ClrType.GetProperties(BindingFlags.Public | BindingFlags.Instance)) 2706ClrType = typeRef.ClrType,
AtsContextFilter.cs (2)
516if (capability.TargetType?.ClrType is not null) 518return IsSelectedAssembly(capability.TargetType.ClrType.Assembly, assemblyNames);
Aspire.Hosting.RemoteHost.Tests (1)
AtsCapabilityScannerTests.cs (1)
193Assert.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);