Skip to content
Docs Try Aspire
Docs Try

AtsTypeRef

Class sealed net8.0
📦 Aspire.TypeSystem v13.4.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
{
// ...
}
View all constructors
BaseTypeget; init
Gets or sets the immediate base type of this type.
Categoryget; 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.
ClrTypeget; init
Type?
Gets or sets the CLR type reference for direct type access.
ElementTypeget; init
Gets or sets the element type reference for Array/List types.
ImplementedInterfacesget; init
Gets or sets the interfaces this type implements.
IsDistributedApplicationget
bool
Gets whether this type is DistributedApplication.
IsDistributedApplicationBuilderget
bool
Gets whether this type is IDistributedApplicationBuilder.
IsInterfaceget; init
bool
Gets or sets whether this is an interface type. Only meaningful for Handle category types.
IsNullableget; init
bool?
Gets or sets whether this type reference accepts a JSON null value at its current use site.
IsReadOnlyget; init
bool
Gets or sets whether this is a readonly collection (copied, not a handle). Only meaningful for Array/Dict categories.
IsResourceBuilderget
bool
Gets whether this type represents a resource builder target type. Computed from ClrType - true for types that implement the Aspire resource contract.
KeyTypeget; init
Gets or sets the key type reference for Dict types.
TypeIdget; init
string
Gets or sets the ATS type ID (e.g., "string", "Aspire.Hosting/RedisResource").
UnionTypesget; init
Gets or sets the member types for Union category. When Category = Union, this contains the alternative types.
ValueTypeget; init
Gets or sets the value type reference for Dict types.
View all properties