AtsConstants Fields
Class Fields 22 members
Constants for ATS (Aspire Type System) type IDs and capability IDs.
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 Type ID for DistributedApplication.
public const static string ApplicationTypeId The Aspire.Hosting assembly name.
public const static string AspireHostingAssembly Boolean type ID. Maps from .NET
Boolean. public const static string Boolean Capability ID for building the application.
public const static string BuildCapability Type ID for IDistributedApplicationBuilder.
public const static string BuilderTypeId CancellationToken type ID. Maps from .NET
Threading.CancellationToken. In TypeScript, maps to AbortSignal for cancellation support. public const static string CancellationToken Char type ID. Maps from .NET
Char. Serializes to JSON string. public const static string Char Capability ID for creating a builder.
public const static string CreateBuilderCapability DateOnly type ID. Maps from .NET
DateOnly. Serializes to JSON string (YYYY-MM-DD). public const static string DateOnly DateTime type ID. Maps from .NET
DateTime. Serializes to JSON string (ISO 8601). public const static string DateTime DateTimeOffset type ID. Maps from .NET
DateTimeOffset. Serializes to JSON string (ISO 8601). public const static string DateTimeOffset 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 type ID. Maps from .NET
Guid. Serializes to JSON string. public const static string Guid Number type ID. Maps from .NET numeric types (int, long, float, double, decimal, etc.). Serializes to JSON number.
public const static string Number Type ID for ReferenceExpression.
public const static string ReferenceExpressionTypeId Capability ID for running the application.
public const static string RunCapability String type ID. Maps from .NET
String. public const static string String TimeOnly type ID. Maps from .NET
TimeOnly. Serializes to JSON string (HH:mm:ss). public const static string TimeOnly TimeSpan type ID. Maps from .NET
TimeSpan. Serializes to JSON number (total milliseconds). public const static string TimeSpan Uri type ID. Maps from .NET
Uri. Serializes to JSON string. public const static string Uri Void type ID. Represents no return value.
public const static string Void