AtsTypeCategory
Enum net8.0
Categories of ATS types for serialization and handling.
namespace Aspire.TypeSystem;
public enum AtsTypeCategoryEnum Members
Section titled Enum MembersPrimitivePrimitive types that serialize directly to JSON values. Examples: string, number, boolean, datetime, guid.
EnumEnum types that serialize as string values.
HandleHandle types that are opaque references to .NET objects. Serialized as { "$handle": "type:id", "$type": "type" }.
DtoData Transfer Objects that serialize as JSON objects. Must be marked with [AspireDto].
CallbackCallback types (delegates) that are registered and invoked by ID.
ArrayReadonly array/collection types that serialize as JSON arrays (copied). Examples: T[], IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>.
ListMutable list types that are handles to .NET List<T>.
DictDictionary types that serialize as JSON objects. Mutable dictionaries are handles; readonly dictionaries are copied.
UnionUnion types that can hold one of multiple alternative types. Serialization depends on the member types.
UnknownUnknown types that couldn't be resolved during the first pass of scanning. In Pass 2, these are either resolved to Handle (if the type is in the universe) or filtered out (if the type is not a valid ATS type).