Skip to content
Docs Try Aspire

AtsContext Properties

Class Properties 7 members
Contains all scanned types, capabilities, and metadata from ATS assembly scanning.
Gets the capabilities discovered during scanning. Capabilities are methods or properties marked with [AspireExport] that can be invoked via RPC.
public IReadOnlyList<AtsCapabilityInfo> Capabilities { get; init; }
Gets any diagnostics (warnings/errors) generated during scanning.
public IReadOnlyList<AtsDiagnostic> Diagnostics { get; init; }
Gets the DTO types discovered during scanning. These are types marked with [AspireDto] that are serialized as JSON objects. Code generators create interfaces for these types.
public IReadOnlyList<AtsDtoTypeInfo> DtoTypes { get; init; }
Gets the enum types discovered during scanning. These are enum types found in capability signatures, serialized as strings. Code generators create enum definitions for these types.
public IReadOnlyList<AtsEnumTypeInfo> EnumTypes { get; init; }
Gets the handle types discovered during scanning. These are types marked with [AspireExport] that are passed by reference using opaque handles. Code generators create wrapper classes for these types.
public IReadOnlyList<AtsTypeInfo> HandleTypes { get; init; }
Methods Section titled Methods Dictionary<string, MethodInfo>
Runtime registry mapping capability IDs to methods.
public Dictionary<string, MethodInfo> Methods { get; }
Properties Section titled Properties Dictionary<string, PropertyInfo>
Runtime registry mapping capability IDs to properties.
public Dictionary<string, PropertyInfo> Properties { get; }