44 writes to ClrType
Aspire.Hosting.CodeGeneration.Python.Tests (5)
AtsPythonCodeGeneratorTests.cs (5)
391ClrType = typeof(KeywordResource), 447ClrType = typeof(AcronymResource), 506ClrType = genericBaseType, 513ClrType = genericInterfaceType, 521ClrType = typeof(GenericResource),
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1265ClrType = resourceType, 1511ClrType = typeof(TResource),
Aspire.Hosting.RemoteHost (23)
Ats\AtsMarshaller.cs (1)
403ClrType = type,
AtsCapabilityScanner.cs (21)
886ClrType = typeInfo.ClrType, 1097? new AtsTypeRef { TypeId = "callback", ClrType = prop.PropertyType, Category = AtsTypeCategory.Callback } 2604ClrType = typeRef.ClrType, 2682return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2688return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2696ClrType = type, 2698KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2699ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2709ClrType = type, 2711ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive } 2724ClrType = type, 2747ClrType = type, 2770ClrType = type, 2792ClrType = type, 2812ClrType = type, 2857ClrType = type, 2873ClrType = type, 2885ClrType = type, 2895ClrType = type, 2990ClrType = iface, 3057ClrType = 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)
1396if (builder.TargetType?.ClrType!.IsGenericType == true) 1478if (i.ClrType!.IsGenericType) 1480if (i.ClrType.GenericTypeArguments == null || i.ClrType.GenericTypeArguments.Length != 1) 1484var genericSubType = i.ClrType.GenericTypeArguments[0]; 1954var typeIdReference = typeRef.ClrType!.IsGenericType ? typeId.Split('`')[0] + "T" : typeId; 2174if (typeRef.ClrType is { } clrType) 2351if (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); 2825if (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)
178Assert.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);