Skip to main content

eqokresult-class

Represents a special kind of Microsoft.AspNetCore.Mvc.IActionResult which allows to build an OK (status code 200) response with some extra data Implements the

public class Korzh.EasyQuery.AspNetCore.EqOkResult
: ActionResult

Assembly: Korzh.EasyQuery.AspNetCore.dll

Constructors

NameTypeDescription
EqOkResult()voidInitializes a new instance of the Korzh.EasyQuery.AspNetCore.EqOkResult class.
EqOkResult(object data)voidInitializes a new instance of the Korzh.EasyQuery.AspNetCore.EqOkResult class.

Fields

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

Methods

NameTypeDescription
ExecuteResult(ActionContext context)voidExecutes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.
ExecuteResultAsync(ActionContext context)TaskExecutes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the Microsoft.AspNetCore.Mvc.ActionResult.ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext) method and returns a completed task.
WriteDataToJsonAsync(JsonWriter writer, CancellationToken ct)TaskWrite the extra data to JsonWriter.
WriteResponseAsync(HttpResponse response)TaskWrite the response as an asynchronous operation.