Class RestPostDataProvider

Uses an IObjectSerializerFactory to get a serializer that can deserialize the post data.

Inheritance
System.Object
RestPostDataProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(typeof(IRestControllerValueProvider))]
public class RestPostDataProvider : IRestControllerValueProvider
Remarks

Currently only supports the JSON format.

Constructors

RestPostDataProvider(IObjectSerializerFactory)

Initializes a new instance of the RestPostDataProvider class.

Declaration
public RestPostDataProvider(IObjectSerializerFactory serializerFactory)
Parameters
Type Name Description
IObjectSerializerFactory serializerFactory

The serializer.

Methods

GetParameterValue(ControllerContext, ParameterDescriptor)

Returns the post data if the requested parameter name is entity.

Declaration
public object GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor)
Parameters
Type Name Description
System.Web.Mvc.ControllerContext controllerContext

The controller context.

System.Web.Mvc.ParameterDescriptor parameterDescriptor

The parameter descriptor.

Returns
Type Description
System.Object

The parameter value if a match was made; otherwise false.

Implements