30 references to Enum
Aspire.Hosting.CodeGeneration.Go (3)
AtsGoCodeGenerator.cs (3)
694AtsTypeCategory.Enum => $"{MapEnumType(typeRef.TypeId)}({value.ToRelaxedJsonString()})", 2106AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 2165&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
864AtsTypeCategory.Enum => $"{MapTypeRefToJava(typeRef, false)}.fromValue({value.ToRelaxedJsonString()})", 2044AtsTypeCategory.Enum => RenderJavaEnumTransportValueConversion(typeRef.TypeId, valueExpression, allowNull), 2557AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId),
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
223AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 246&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.Rust (5)
AtsRustCodeGenerator.cs (5)
384AtsTypeCategory.Enum => true, 913AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 951AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 991AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 1061&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.TypeScript (3)
TypeScriptApiProjector.cs (3)
1688AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 1706if (typeRef.IsNullable != true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum)) 1735elementType is { IsNullable: true, Category: AtsTypeCategory.Primitive or AtsTypeCategory.Enum };
Aspire.Hosting.RemoteHost (6)
Ats\AtsMarshaller.cs (3)
159AtsTypeCategory.Enum => JsonValue.Create(value.ToString()), 197AtsTypeCategory.Enum => JsonValue.Create(value.ToString()), 473AtsTypeCategory.Enum => JsonValue.Create(value.ToString()),
AtsCapabilityScanner.cs (3)
610if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 1313AtsTypeCategory.Enum => true, 2726Category = AtsTypeCategory.Enum
Aspire.Hosting.RemoteHost.Tests (5)
AtsContextFilterTests.cs (5)
278Category = AtsTypeCategory.Enum 296Category = AtsTypeCategory.Enum 436Category = AtsTypeCategory.Enum 489Category = AtsTypeCategory.Enum 529Category = AtsTypeCategory.Enum
Aspire.TypeSystem (3)
AtsConstants.cs (2)
366return AtsTypeCategory.Enum; 453return AtsTypeCategory.Enum;
AtsContext.cs (1)
118return AtsTypeCategory.Enum;