Class CommandHttpResponseExtensions
- Namespace
- Cratis.Applications.Commands
- Assembly
- Cratis.Applications.dll
Provides extension methods for handling command results and Http responses.
public static class CommandHttpResponseExtensions
- Inheritance
-
CommandHttpResponseExtensions
- Inherited Members
Methods
SetResponseStatusCode(HttpResponse, CommandResult)
Sets the proper status code on the HTTP response based on the state of the CommandResult.
public static void SetResponseStatusCode(this HttpResponse response, CommandResult commandResult)
Parameters
response
HttpResponseHttpResponse to set status code on.
commandResult
CommandResultCommandResult to evaluate.