Skip to main content

eqokhttpactionresult-class

Represents a special kind of System.Web.Http.IHttpActionResult which allows to build an OK (status code 200) response with some extra data Implements the

public class Korzh.EasyQuery.AspNet.EqOkHttpActionResult
: IHttpActionResult

Assembly: Korzh.EasyQuery.AspNet4.dll

Constructors

NameTypeDescription
EqOkHttpActionResult(HttpRequestMessage request)voidInitializes a new instance of the Korzh.EasyQuery.AspNet.EqOkHttpActionResult class.
EqOkHttpActionResult(object data, HttpRequestMessage request)voidInitializes a new instance of the Korzh.EasyQuery.AspNet.EqOkHttpActionResult class.

Fields

NameTypeDescription
DataobjectThe data which should be added to the response body.
RequestHttpRequestMessageThe request message

Methods

NameTypeDescription
ExecuteAsync(CancellationToken cancellationToken)Task<HttpResponseMessage>Creates an System.Net.Http.HttpResponseMessage asynchronously.
WriteDataToJsonAsync(JsonWriter writer, CancellationToken ct)TaskWrite the extra data to JsonWriter.
WriteResponseAsync(Stream stream, HttpContent content, TransportContext context, CancellationToken ct)TaskWrite the response as an asynchronous operation.