RequiredCommandResourceExtensions
Class static net8.0
Provides extension methods for adding required command annotations to resources.
namespace Aspire.Hosting;
public static class RequiredCommandResourceExtensions{ // ...}Methods2
Section titled MethodsWithRequiredCommand(IResourceBuilder<T>, string, string?)extensionats export Declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.
WithRequiredCommand(IResourceBuilder<T>, string, Func<RequiredCommandValidationContext, Task<RequiredCommandValidationResult>>, string?)extensionexperimentalats ignored Declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start, with custom validation logic.