Class ExtensionResponseAdapter

The ExtensionRequestAdapter class converts extension data to an ExtensionRequest for persistance in a MongoDB database. Additionally, it converts instances of ExtensionRequest back to the original extension data.

Inheritance
System.Object
ExtensionResponseAdapter
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.Social.Common.Rest
Assembly: EPiServer.Social.Common.Rest.dll
Version: 1.5.4
Syntax
public class ExtensionResponseAdapter

Constructors

ExtensionResponseAdapter()

Constructor

Declaration
public ExtensionResponseAdapter()

Methods

AdaptFromExtensionResponse<TExtension>(ExtensionResponse)

Restores the data encapsulated by an ExtensionRequest to an instnace of its original .NET data type.

Declaration
public TExtension AdaptFromExtensionResponse<TExtension>(ExtensionResponse extensionResponse)
    where TExtension : class
Parameters
Type Name Description
ExtensionResponse extensionResponse

Extension document containing data to be restored

Returns
Type Description
TExtension

Restored extension data

Type Parameters
Name Description
TExtension
arrow_upward