November Happy Hour will be moved to Thursday December 5th.

Class RestResultBase

Serves as a base class for encapsulating REST responses.

Inheritance
System.Object
RestResultBase
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 9.12.2
Syntax
public abstract class RestResultBase : ActionResult

Constructors

RestResultBase(IObjectSerializerFactory)

Initializes a new instance of the RestResultBase class.

Declaration
protected RestResultBase(IObjectSerializerFactory serializerFactory)
Parameters
Type Name Description
IObjectSerializerFactory serializerFactory

The serializer factory. If null is passed it will be resolved from using service location.

Properties

ContentEncoding

Gets or sets the content encoding.

Declaration
public Encoding ContentEncoding { get; set; }
Property Value
Type Description
System.Text.Encoding

The content encoding.

Data

Gets or sets the data returned to the client as a result of the request.

Declaration
public object Data { get; set; }
Property Value
Type Description
System.Object

Methods

ExecuteResult(ControllerContext)

Processes the result and writes the resulting data to the http output stream.

Declaration
public override void ExecuteResult(ControllerContext context)
Parameters
Type Name Description
System.Web.Mvc.ControllerContext context

The context in which the result is executed.

Extension Methods