eqerrorhttpactionresult-class
Represents a special kind of System.Web.Http.IHttpActionResult
which allows to build an BadRequest (status code 400) response with error message Implements the
public class Korzh.EasyQuery.AspNet.EqErrorHttpActionResult
: IHttpActionResult
Assembly: Korzh.EasyQuery.AspNet4.dll
Constructors
Name | Type | Description |
---|---|---|
EqErrorHttpActionResult(string message, HttpRequestMessage request) | void | Initializes a new instance of the Korzh.EasyQuery.AspNet.EqErrorHttpActionResult class. |
EqErrorHttpActionResult(string message, string stackTrace, HttpRequestMessage request) | void | Initializes a new instance of the Korzh.EasyQuery.AspNet.EqErrorHttpActionResult class. |
Fields
Name | Type | Description |
---|---|---|
Message | string | The error message which should be added to the response body. |
Request | HttpRequestMessage | The request message |
StackTrace | string | The error stack trace which should be added to the response body. |
Methods
Name | Type | Description |
---|---|---|
ExecuteAsync(CancellationToken cancellationToken) | Task <HttpResponseMessage > | Creates an System.Net.Http.HttpResponseMessage asynchronously. |
WriteResponseAsync(Stream stream, HttpContent content, TransportContext context) | Task | Write the response as an asynchronous operation. |