77 writes to ClrType
Aspire.Hosting.CodeGeneration.Go.Tests (3)
AtsGoCodeGeneratorTests.cs (3)
2639ClrType = typeof(string), 2645ClrType = typeof(long), 2735ClrType = type.ClrType,
Aspire.Hosting.CodeGeneration.Python.Tests (7)
AtsPythonCodeGeneratorTests.cs (7)
861ClrType = typeof(KeywordResource), 917ClrType = typeof(AcronymResource), 976ClrType = genericBaseType, 983ClrType = genericInterfaceType, 991ClrType = typeof(GenericResource), 1173ClrType = typeof(CollidingAlphaResource), 1180ClrType = typeof(CollidingBetaResource),
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1820ClrType = resourceType, 2104ClrType = typeof(TResource),
Aspire.Hosting.Native.CodeGeneration (21)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (21)
966ClrType = typeInfo.ClrType, 1178? new AtsTypeRef { TypeId = "callback", ClrType = prop.PropertyType, Category = AtsTypeCategory.Callback } 2719ClrType = typeRef.ClrType, 2798return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2804return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2812ClrType = type, 2814KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2815ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2825ClrType = type, 2827ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive } 2840ClrType = type, 2863ClrType = type, 2886ClrType = type, 2908ClrType = type, 2928ClrType = type, 2973ClrType = type, 2989ClrType = type, 3001ClrType = type, 3011ClrType = type, 3106ClrType = iface, 3173ClrType = type,
Aspire.Hosting.RemoteHost (23)
Ats\AtsMarshaller.cs (1)
427ClrType = type,
AtsCapabilityScanner.cs (21)
966ClrType = typeInfo.ClrType, 1178? new AtsTypeRef { TypeId = "callback", ClrType = prop.PropertyType, Category = AtsTypeCategory.Callback } 2719ClrType = typeRef.ClrType, 2798return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2804return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2812ClrType = type, 2814KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2815ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2825ClrType = type, 2827ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive } 2840ClrType = type, 2863ClrType = type, 2886ClrType = type, 2908ClrType = type, 2928ClrType = type, 2973ClrType = type, 2989ClrType = type, 3001ClrType = type, 3011ClrType = type, 3106ClrType = iface, 3173ClrType = 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 }
36 references to ClrType
Aspire.Hosting.CodeGeneration.Go (3)
AtsGoCodeGenerator.ApiProjection.cs (2)
1190return GetOwningAssemblyName(capability.CapabilityId, capability.TargetType?.ClrType?.Assembly.GetName().Name); 1274if (typeRef.Category == AtsTypeCategory.Handle && typeRef.ClrType is { } clrType)
AtsGoCodeGenerator.cs (1)
3169AtsConstants.Number => MapNumericType(typeRef.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)
690if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 692enumTypes.TryAdd(typeRef.TypeId, typeRef.ClrType); 1417if (typeRef.ClrType is null) 1429foreach (var property in typeRef.ClrType.GetProperties(BindingFlags.Public | BindingFlags.Instance)) 2719ClrType = typeRef.ClrType,
Aspire.Hosting.RemoteHost (9)
Ats\AtsMarshaller.cs (1)
177if (member.ClrType?.IsInstanceOfType(value) == true)
Ats\CapabilityDispatcher.cs (1)
947.Select(static unionType => unionType.ClrType)
AtsCapabilityScanner.cs (5)
690if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 692enumTypes.TryAdd(typeRef.TypeId, typeRef.ClrType); 1417if (typeRef.ClrType is null) 1429foreach (var property in typeRef.ClrType.GetProperties(BindingFlags.Public | BindingFlags.Instance)) 2719ClrType = 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);