Table of Contents

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 HttpResponse

HttpResponse to set status code on.

commandResult CommandResult

CommandResult to evaluate.