Interface IObjectSerializerFactory
Defines a factory service responsible for creating IObject
Namespace: EPiServer.Framework.Serialization
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public interface IObjectSerializerFactory
Methods
GetSerializer(String)
Gets the IObject
Declaration
IObjectSerializer GetSerializer(string contentType)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentType | The content type. |
Returns
Type | Description |
---|---|
IObject |
An IObject |
RegisterSerializer(String, ServiceAccessor<IObjectSerializer>)
Registers an IObject
Declaration
void RegisterSerializer(string contentType, ServiceAccessor<IObjectSerializer> accessor)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentType | The content type to handle. |
Service |
accessor | The accessor delegate. |