Skip to content
DocsTry Aspire
DocsTry

AtsConstants Fields

ClassFields22 members
Constants for ATS (Aspire Type System) type IDs and capability IDs.
AnySection titled Anystaticconststring
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
ApplicationTypeIdSection titled ApplicationTypeIdstaticconststring
Type ID for DistributedApplication.
public const static string ApplicationTypeId
AspireHostingAssemblySection titled AspireHostingAssemblystaticconststring
The Aspire.Hosting assembly name.
public const static string AspireHostingAssembly
BooleanSection titled Booleanstaticconststring
Boolean type ID. Maps from .NET Boolean.
public const static string Boolean
BuildCapabilitySection titled BuildCapabilitystaticconststring
Capability ID for building the application.
public const static string BuildCapability
BuilderTypeIdSection titled BuilderTypeIdstaticconststring
Type ID for IDistributedApplicationBuilder.
public const static string BuilderTypeId
CancellationTokenSection titled CancellationTokenstaticconststring
CancellationToken type ID. Maps from .NET Threading.CancellationToken. In TypeScript, maps to AbortSignal for cancellation support.
public const static string CancellationToken
CharSection titled Charstaticconststring
Char type ID. Maps from .NET Char. Serializes to JSON string.
public const static string Char
CreateBuilderCapabilitySection titled CreateBuilderCapabilitystaticconststring
Capability ID for creating a builder.
public const static string CreateBuilderCapability
DateOnlySection titled DateOnlystaticconststring
DateOnly type ID. Maps from .NET DateOnly. Serializes to JSON string (YYYY-MM-DD).
public const static string DateOnly
DateTimeSection titled DateTimestaticconststring
DateTime type ID. Maps from .NET DateTime. Serializes to JSON string (ISO 8601).
public const static string DateTime
DateTimeOffsetSection titled DateTimeOffsetstaticconststring
DateTimeOffset type ID. Maps from .NET DateTimeOffset. Serializes to JSON string (ISO 8601).
public const static string DateTimeOffset
EnumPrefixSection titled EnumPrefixstaticconststring
Enum type ID prefix. Maps from .NET enum types. Full format: "enum:{FullTypeName}". Serializes to JSON string (enum name).
public const static string EnumPrefix
GuidSection titled Guidstaticconststring
Guid type ID. Maps from .NET Guid. Serializes to JSON string.
public const static string Guid
NumberSection titled Numberstaticconststring
Number type ID. Maps from .NET numeric types (int, long, float, double, decimal, etc.). Serializes to JSON number.
public const static string Number
ReferenceExpressionTypeIdSection titled ReferenceExpressionTypeIdstaticconststring
Type ID for ReferenceExpression.
public const static string ReferenceExpressionTypeId
RunCapabilitySection titled RunCapabilitystaticconststring
Capability ID for running the application.
public const static string RunCapability
StringSection titled Stringstaticconststring
String type ID. Maps from .NET String.
public const static string String
TimeOnlySection titled TimeOnlystaticconststring
TimeOnly type ID. Maps from .NET TimeOnly. Serializes to JSON string (HH:mm:ss).
public const static string TimeOnly
TimeSpanSection titled TimeSpanstaticconststring
TimeSpan type ID. Maps from .NET TimeSpan. Serializes to JSON number (total milliseconds).
public const static string TimeSpan
UriSection titled Uristaticconststring
Uri type ID. Maps from .NET Uri. Serializes to JSON string.
public const static string Uri
VoidSection titled Voidstaticconststring
Void type ID. Represents no return value.
public const static string Void