Skip to content
Docs Try Aspire

CommandResults

Class static net10.0
📦 Aspire.Hosting v13.1.2
A factory for ExecuteCommandResult.
namespace Aspire.Hosting.ApplicationModel;
public static class CommandResults
{
// ...
}
Canceledstatic
Produces a canceled result.
Failure(string?)static
Produces an unsuccessful result with an error message.
Failure(Exception)static
Produces an unsuccessful result from an Exception. Exception.Message is used as the error message.
Successstatic
Produces a success result.
View all methods