AtsTypeRef
Classsealednet10.0
Lightweight type reference with category and interface flag. Used for parameter types and return types in capabilities.
namespace Aspire.TypeSystem;
public sealed class AtsTypeRef{ // ...}16 members
Constructors1
Section titled ConstructorsProperties15
Section titled PropertiesCategoryget; set Gets or sets the type category (Primitive, Handle, Dto, Callback, Array, List, Dict, Unknown). Note: This is mutable to allow Pass 2 resolution of Unknown types to Handle.
ImplementedInterfaces get; init Gets or sets the interfaces this type implements.
IsInterface get; initbool Gets or sets whether this is an interface type. Only meaningful for Handle category types.
IsNullable get; initbool? Gets or sets whether this type reference accepts a JSON null value at its current use site.
IsReadOnly get; initbool Gets or sets whether this is a readonly collection (copied, not a handle). Only meaningful for Array/Dict categories.
bool Gets whether this type represents a resource builder target type. Computed from ClrType - true for types that implement the Aspire resource contract.
TypeId get; initstring Gets or sets the ATS type ID (e.g., "string", "Aspire.Hosting/RedisResource").
UnionTypes get; init Gets or sets the member types for Union category. When Category = Union, this contains the alternative types.