53 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)
1576ClrType = resourceType, 1837ClrType = typeof(TResource),
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 } 2685ClrType = typeRef.ClrType, 2764return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2770return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2778ClrType = type, 2780KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2781ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2791ClrType = type, 2793ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive } 2806ClrType = type, 2829ClrType = type, 2852ClrType = type, 2874ClrType = type, 2894ClrType = type, 2939ClrType = type, 2955ClrType = type, 2967ClrType = type, 2977ClrType = type, 3072ClrType = iface, 3139ClrType = 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 }
25 references to ClrType
Aspire.Hosting.CodeGeneration.Python (8)
AtsPythonCodeGenerator.cs (8)
1470if (builder.TargetType?.ClrType!.IsGenericType == true) 1552if (i.ClrType!.IsGenericType) 1554if (i.ClrType.GenericTypeArguments == null || i.ClrType.GenericTypeArguments.Length != 1) 1558var genericSubType = i.ClrType.GenericTypeArguments[0]; 2031var typeIdReference = typeRef.ClrType!.IsGenericType ? typeId.Split('`')[0] + "T" : typeId; 2251if (typeRef.ClrType is { } clrType) 2428if (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.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)) 2685ClrType = 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);