Skip to content
Docs Try Aspire

AtsConstants Fields

Class Fields 22 members
Constants for ATS (Aspire Type System) type IDs and capability IDs.
Any Section titled Any staticconst string
Any type ID. Maps from .NET Object. Accepts any supported ATS type. Use when a parameter needs to accept multiple types without explicit union declaration.
public const static string Any
ApplicationTypeId Section titled ApplicationTypeId staticconst string
Type ID for DistributedApplication.
public const static string ApplicationTypeId
AspireHostingAssembly Section titled AspireHostingAssembly staticconst string
The Aspire.Hosting assembly name.
public const static string AspireHostingAssembly
Boolean Section titled Boolean staticconst string
Boolean type ID. Maps from .NET Boolean.
public const static string Boolean
BuildCapability Section titled BuildCapability staticconst string
Capability ID for building the application.
public const static string BuildCapability
BuilderTypeId Section titled BuilderTypeId staticconst string
Type ID for IDistributedApplicationBuilder.
public const static string BuilderTypeId
CancellationToken Section titled CancellationToken staticconst string
CancellationToken type ID. Maps from .NET Threading.CancellationToken. In TypeScript, maps to AbortSignal for cancellation support.
public const static string CancellationToken
Char Section titled Char staticconst string
Char type ID. Maps from .NET Char. Serializes to JSON string.
public const static string Char
CreateBuilderCapability Section titled CreateBuilderCapability staticconst string
Capability ID for creating a builder.
public const static string CreateBuilderCapability
DateOnly Section titled DateOnly staticconst string
DateOnly type ID. Maps from .NET DateOnly. Serializes to JSON string (YYYY-MM-DD).
public const static string DateOnly
DateTime Section titled DateTime staticconst string
DateTime type ID. Maps from .NET DateTime. Serializes to JSON string (ISO 8601).
public const static string DateTime
DateTimeOffset Section titled DateTimeOffset staticconst string
DateTimeOffset type ID. Maps from .NET DateTimeOffset. Serializes to JSON string (ISO 8601).
public const static string DateTimeOffset
EnumPrefix Section titled EnumPrefix staticconst string
Enum type ID prefix. Maps from .NET enum types. Full format: "enum:{FullTypeName}". Serializes to JSON string (enum name).
public const static string EnumPrefix
Guid Section titled Guid staticconst string
Guid type ID. Maps from .NET Guid. Serializes to JSON string.
public const static string Guid
Number Section titled Number staticconst string
Number type ID. Maps from .NET numeric types (int, long, float, double, decimal, etc.). Serializes to JSON number.
public const static string Number
ReferenceExpressionTypeId Section titled ReferenceExpressionTypeId staticconst string
Type ID for ReferenceExpression.
public const static string ReferenceExpressionTypeId
RunCapability Section titled RunCapability staticconst string
Capability ID for running the application.
public const static string RunCapability
String Section titled String staticconst string
String type ID. Maps from .NET String.
public const static string String
TimeOnly Section titled TimeOnly staticconst string
TimeOnly type ID. Maps from .NET TimeOnly. Serializes to JSON string (HH:mm:ss).
public const static string TimeOnly
TimeSpan Section titled TimeSpan staticconst string
TimeSpan type ID. Maps from .NET TimeSpan. Serializes to JSON number (total milliseconds).
public const static string TimeSpan
Uri Section titled Uri staticconst string
Uri type ID. Maps from .NET Uri. Serializes to JSON string.
public const static string Uri
Void Section titled Void staticconst string
Void type ID. Represents no return value.
public const static string Void