Class RestResultBase
Serves as a base class for encapsulating REST responses.
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 9.12.2Syntax
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 |
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. |