27 references to Enum
Aspire.Hosting.CodeGeneration.Go (2)
AtsGoCodeGenerator.cs (2)
694AtsTypeCategory.Enum => $"{MapTypeRefToGo(typeRef, isOptional: false)}({value.ToRelaxedJsonString()})", 2090AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId),
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
864AtsTypeCategory.Enum => $"{MapTypeRefToJava(typeRef, false)}.fromValue({value.ToRelaxedJsonString()})", 2031AtsTypeCategory.Enum => RenderJavaEnumTransportValueConversion(typeRef.TypeId, valueExpression, allowNull), 2495AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId),
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
219AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 237if (typeRef.IsNullable != true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum))
Aspire.Hosting.CodeGeneration.Rust (4)
AtsRustCodeGenerator.cs (4)
384AtsTypeCategory.Enum => true, 913AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 951AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 991AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId),
Aspire.Hosting.CodeGeneration.TypeScript (2)
TypeScriptApiProjector.cs (2)
1688AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 1706if (typeRef.IsNullable != true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum))
Aspire.Hosting.RemoteHost (6)
Ats\AtsMarshaller.cs (3)
155AtsTypeCategory.Enum => JsonValue.Create(value.ToString()), 193AtsTypeCategory.Enum => JsonValue.Create(value.ToString()), 432AtsTypeCategory.Enum => JsonValue.Create(value.ToString()),
AtsCapabilityScanner.cs (3)
610if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 1313AtsTypeCategory.Enum => true, 2725Category = 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;