CommandResults
Class static net8.0
A factory for
ExecuteCommandResult. namespace Aspire.Hosting.ApplicationModel;
public static class CommandResults{ // ...} 8 members
Methods8
Section titled MethodsCanceledstatic Produces a canceled result.
Failure(string?)static Produces an unsuccessful result with an error message.
Failure(string, string, CommandResultFormat)static Produces an unsuccessful result with an error message and result data.
Failure(string, CommandResultData)static Produces an unsuccessful result with an error message and a value.
Failure(Exception)static Produces an unsuccessful result from an
Exception. Exception.Message is used as the error message. Successstatic Produces a success result.
Success(string, string, CommandResultFormat)static Produces a success result with a message and result data.
Success(string, CommandResultData)static Produces a success result with a message and a value.