AtsCapabilityInfo
Classsealednet10.0
Represents a discovered [AspireExport] capability.
namespace Aspire.TypeSystem;
public sealed class AtsCapabilityInfo{ // ...}20 members
Remarks
Section titled RemarksThis model is shared between code generation (using RoMethod/RoType metadata reflection) and the runtime CapabilityDispatcher (using System.Reflection).
The capability represents a single exportable method that can be invoked via invoke from polyglot clients.
Constructors1
Section titled ConstructorsProperties19
Section titled PropertiesCapabilityKind get; init Gets or sets the kind of capability (Method, PropertyGetter, PropertySetter, InstanceMethod).
Documentationget; init Gets or sets the XML documentation captured for this capability.
ExpandedTargetTypes get; set Gets or sets the expanded list of concrete types this capability applies to. Pre-computed during scanning by resolving interface targets to all implementing types.
MethodName get; setstring Gets or sets the simple method name for generated SDKs (e.g., "addRedis", "isRunMode"). For context type capabilities, this is just the property/method name without the type prefix.
string Gets the qualified method name combining OwningTypeName and MethodName.
ReturnType get; init Gets or sets the return type reference with full type metadata. Use
AtsConstants.Void TypeId for void return types. RunSyncOnBackgroundThread get; initbool Gets or sets whether this capability's invocation should run on a background thread.
TargetParameterName get; initstring? Gets or sets the name of the target parameter (e.g., "builder", "resource"). This is the first parameter of the method that represents the target/receiver.
TargetTypeId get; initstring? Gets or sets the original (declared) ATS type ID that this capability targets. May be an interface type (e.g., "Aspire.Hosting/IResourceWithEnvironment").