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

Package: Korzh.EasyQuery.AspNet4 (targets: net461)

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.

Fields

Name Type Description
Message string The error message which should be added to the response body.
Request HttpRequestMessage The request message

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.