133 references to Primitive
Aspire.Hosting.CodeGeneration.Go (7)
AtsGoCodeGenerator.cs (7)
1259
AtsTypeCategory.
Primitive
=> RenderGoJsonValue(value),
1275
var valueType = typeRef.Category == AtsTypeCategory.
Primitive
2525
return property.Type.Category is AtsTypeCategory.
Primitive
or AtsTypeCategory.Enum
2535
AtsTypeCategory.
Primitive
=> type.TypeId is not (AtsConstants.Any or AtsConstants.ReferenceExpressionTypeId),
2609
return parameter.Type is { Category: AtsTypeCategory.
Primitive
or AtsTypeCategory.Enum }
3075
AtsTypeCategory.
Primitive
=> MapPrimitiveType(typeRef),
3139
&& typeRef.Category is AtsTypeCategory.
Primitive
or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.Go.Tests (10)
AtsGoCodeGeneratorTests.cs (4)
2640
Category = AtsTypeCategory.
Primitive
2646
Category = AtsTypeCategory.
Primitive
2648
var voidType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2736
Category = AtsTypeCategory.
Primitive
AtsGoDerivedBuilderTests.cs (2)
497
private static readonly AtsTypeRef s_string = new() { TypeId = AtsConstants.String, Category = AtsTypeCategory.
Primitive
};
658
CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
}
GoApiExportTests.cs (2)
334
new AtsDtoPropertyInfo { Name = "Required", Type = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.
Primitive
} },
335
new AtsDtoPropertyInfo { Name = "Optional", Type = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.
Primitive
}, IsOptional = true }
GoDocCommentTests.cs (1)
565
private static AtsTypeRef Primitive(string typeId) => new() { TypeId = typeId, Category = AtsTypeCategory.
Primitive
};
GoGeneratorEscapingTests.cs (1)
223
private static AtsTypeRef Primitive(string typeId) => new() { TypeId = typeId, Category = AtsTypeCategory.
Primitive
};
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
879
AtsTypeCategory.
Primitive
=> value.ToRelaxedJsonString(),
2063
AtsTypeCategory.
Primitive
=> RenderJavaPrimitiveTransportValueConversion(typeRef.TypeId, valueExpression, allowNull),
2576
AtsTypeCategory.
Primitive
=> MapPrimitiveType(typeRef.TypeId, isOptional || useBoxedTypes),
Aspire.Hosting.CodeGeneration.Java.Tests (22)
AtsJavaCodeGeneratorTests.cs (22)
719
var numberType = new AtsTypeRef { TypeId = AtsConstants.Number, Category = AtsTypeCategory.
Primitive
};
720
var booleanType = new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.
Primitive
};
2950
var stringType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.
Primitive
};
2998
var stringType = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.
Primitive
};
3007
CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
}
3014
ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
},
3046
ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
},
3082
Category = AtsTypeCategory.
Primitive
,
3117
new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.
Primitive
, IsNullable = true }),
3121
new AtsTypeRef { TypeId = AtsConstants.Number, Category = AtsTypeCategory.
Primitive
, IsNullable = true }),
3251
Category = AtsTypeCategory.
Primitive
,
3257
Category = AtsTypeCategory.
Primitive
,
3288
CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
}
3295
ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
},
3553
Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.
Primitive
}
3575
Category = AtsTypeCategory.
Primitive
3639
CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
}
3646
ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
},
3668
Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.
Primitive
}
3914
new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.
Primitive
});
3948
KeyType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.
Primitive
},
3949
ValueType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.
Primitive
}
Aspire.Hosting.CodeGeneration.Python (4)
AtsPythonCodeGenerator.cs (4)
222
AtsTypeCategory.
Primitive
=> MapPrimitiveType(typeRef.TypeId),
246
&& typeRef.Category is AtsTypeCategory.
Primitive
or AtsTypeCategory.Enum
533
if (typeRef.Category == AtsTypeCategory.
Primitive
&& typeRef.TypeId == AtsConstants.Void)
1026
if (!topLevel || typeRef.Category is AtsTypeCategory.
Primitive
)
Aspire.Hosting.CodeGeneration.Python.Tests (9)
AtsPythonCodeGeneratorTests.cs (9)
886
Category = AtsTypeCategory.
Primitive
942
Category = AtsTypeCategory.
Primitive
1016
Category = AtsTypeCategory.
Primitive
1068
Category = AtsTypeCategory.
Primitive
,
1076
Category = AtsTypeCategory.
Primitive
1115
Category = AtsTypeCategory.
Primitive
,
1125
Category = AtsTypeCategory.
Primitive
1161
Category = AtsTypeCategory.
Primitive
1167
Category = AtsTypeCategory.
Primitive
Aspire.Hosting.CodeGeneration.Rust (6)
AtsRustCodeGenerator.cs (6)
386
AtsTypeCategory.
Primitive
=> true,
914
AtsTypeCategory.
Primitive
=> MapPrimitiveType(typeRef.TypeId),
952
AtsTypeCategory.
Primitive
=> MapPrimitiveType(typeRef.TypeId),
992
AtsTypeCategory.
Primitive
=> MapPrimitiveType(typeRef.TypeId),
1037
if (typeRef.Category == AtsTypeCategory.
Primitive
)
1063
&& typeRef.Category is AtsTypeCategory.
Primitive
or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptApiProjector.cs (4)
759
return exportedValue.Type.Category is AtsTypeCategory.
Primitive
1691
AtsTypeCategory.
Primitive
=> MapPrimitiveType(typeRef.TypeId),
1710
if (typeRef.IsNullable != true || typeRef.Category is not (AtsTypeCategory.
Primitive
or AtsTypeCategory.Enum))
1739
elementType is { IsNullable: true, Category: AtsTypeCategory.
Primitive
or AtsTypeCategory.Enum };
Aspire.Hosting.CodeGeneration.TypeScript.Tests (16)
AtsTypeScriptCodeGeneratorTests.cs (16)
288
Category = AtsTypeCategory.
Primitive
970
Category = AtsTypeCategory.
Primitive
,
1043
Category = AtsTypeCategory.
Primitive
1070
Category = AtsTypeCategory.
Primitive
,
1077
KeyType = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.
Primitive
},
2117
Category = AtsTypeCategory.
Primitive
2142
Category = AtsTypeCategory.
Primitive
2519
Assert.Equal(AtsTypeCategory.
Primitive
, ctParam.Type.Category);
3135
Category = AtsTypeCategory.
Primitive
3140
Category = AtsTypeCategory.
Primitive
3444
Category = AtsTypeCategory.
Primitive
3577
Category = AtsTypeCategory.
Primitive
3584
Category = AtsTypeCategory.
Primitive
3611
Category = AtsTypeCategory.
Primitive
3620
Category = AtsTypeCategory.
Primitive
3628
Category = AtsTypeCategory.
Primitive
Aspire.Hosting.Native.CodeGeneration (17)
NativeCSharpProjection.cs (1)
242
AtsTypeCategory.
Primitive
=> type.TypeId switch
NativeProviderTypeScriptProjection.cs (1)
93
AtsTypeCategory.
Primitive
=> id switch
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (15)
1399
AtsTypeCategory.
Primitive
=> typeRef.TypeId != AtsConstants.CancellationToken && typeRef.TypeId != AtsConstants.Void,
1704
: new AtsTypeRef { TypeId = AtsConstants.Any, Category = AtsTypeCategory.
Primitive
};
1731
propertyTypeRef = new AtsTypeRef { TypeId = AtsConstants.Any, Category = AtsTypeCategory.
Primitive
};
2301
returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2305
returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2313
?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
}
2314
: new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2319
?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
}
2347
var voidTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2683
Category = AtsTypeCategory.
Primitive
2798
return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.
Primitive
};
2804
return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.
Primitive
};
2814
KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.
Primitive
},
2815
ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.
Primitive
},
2827
ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.
Primitive
}
Aspire.Hosting.RemoteHost (19)
Ats\AtsMarshaller.cs (3)
158
AtsTypeCategory.
Primitive
=> SerializePrimitive(value),
216
AtsTypeCategory.
Primitive
=> SerializePrimitive(value),
455
AtsTypeCategory.
Primitive
=> SerializePrimitive(value),
AtsCapabilityScanner.cs (15)
1399
AtsTypeCategory.
Primitive
=> typeRef.TypeId != AtsConstants.CancellationToken && typeRef.TypeId != AtsConstants.Void,
1704
: new AtsTypeRef { TypeId = AtsConstants.Any, Category = AtsTypeCategory.
Primitive
};
1731
propertyTypeRef = new AtsTypeRef { TypeId = AtsConstants.Any, Category = AtsTypeCategory.
Primitive
};
2301
returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2305
returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2313
?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
}
2314
: new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2319
?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
}
2347
var voidTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
};
2683
Category = AtsTypeCategory.
Primitive
2798
return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.
Primitive
};
2804
return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.
Primitive
};
2814
KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.
Primitive
},
2815
ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.
Primitive
},
2827
ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.
Primitive
}
AtsContextFilter.cs (1)
345
Category = AtsTypeCategory.
Primitive
Aspire.Hosting.RemoteHost.Tests (13)
AtsContextFilterTests.cs (3)
285
Type = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.
Primitive
},
580
Category = AtsTypeCategory.
Primitive
606
Category = AtsTypeCategory.
Primitive
AtsMarshallerTests.cs (7)
175
new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.
Primitive
},
176
new AtsTypeRef { TypeId = AtsConstants.Number, ClrType = typeof(int), Category = AtsTypeCategory.
Primitive
},
177
new AtsTypeRef { TypeId = AtsConstants.Boolean, ClrType = typeof(bool), Category = AtsTypeCategory.
Primitive
}
198
new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.
Primitive
},
220
new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.
Primitive
},
221
new AtsTypeRef { TypeId = AtsConstants.Boolean, ClrType = typeof(bool), Category = AtsTypeCategory.
Primitive
}
294
Category = AtsTypeCategory.
Primitive
ExternalCapabilityRegistryTests.cs (3)
894
ReturnType = new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.
Primitive
}
920
ReturnType = new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.
Primitive
}
964
Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.
Primitive
},
Aspire.TypeSystem (3)
AtsConstants.cs (2)
361
return AtsTypeCategory.
Primitive
;
448
return AtsTypeCategory.
Primitive
;
AtsContext.cs (1)
112
return AtsTypeCategory.
Primitive
;