ResourceTraitBuilderExtensions
Classstaticnet10.0
Provides methods for adding resource metadata and dashboard defaults.
namespace Aspire.Hosting;
public static class ResourceTraitBuilderExtensions{ // ...}Methods3
Section titled Methods Sets the default display order of the resource in lists of resources, such as the dashboard's. A saved ordering takes precedence. Repeated calls replace the order.
Adds AppHost-defined dashboard tags that users cannot remove. Repeated calls add tags.
Adds immutable, non-sensitive metadata to a resource. Repeated names add multiple values.