Skip to content

Serialize Method ​

Definition ​

  • Namespace: JASE.Web
  • Assembly: JASE.Web.dll

SerializedActionResult Serialize(ActionContext context, object value) ​

csharp
SerializedActionResult Serialize(ActionContext context, object value)

Serializes the provided payload into a response body for the current action context.

Parameters ​

NameDescription
contextThe ActionContext for the current request.
valueThe payload value to serialize.

Returns ​

A SerializedActionResult containing the serialized response body bytes and the associated content type.

Remarks ​

Implementations may inspect the current request, including headers such as Accept, in order to determine the most appropriate response format.