Interface IObjectSerializerFactory
Factory that is used to register and get serializers for a given content type.
Namespace: EPiServer.Framework.Serialization
Assembly: EPiServer.Framework.dll
Version: 7.19.2Syntax
public interface IObjectSerializerFactoryMethods
GetSerializer(String)
Gets the serializer for the given content type.
Declaration
IObjectSerializer GetSerializer(string contentType)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | contentType | The content type. | 
Returns
| Type | Description | 
|---|---|
| IObjectSerializer | An IObjectSerializer for the given content type or null if no serializer is registered for the content type. | 
RegisterSerializer(String, IObjectSerializer)
Registers an IObjectSerializer for a given content type.
Declaration
[Obsolete("Register using a Service accessor delegate instead.")]
void RegisterSerializer(string contentType, IObjectSerializer serializer)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | contentType | The content type to handle. | 
| IObjectSerializer | serializer | The serializer. | 
RegisterSerializer(String, ServiceAccessor<IObjectSerializer>)
Registers an IObjectSerializer for a given content type.
Declaration
void RegisterSerializer(string contentType, ServiceAccessor<IObjectSerializer> accessor)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | contentType | The content type to handle. | 
| ServiceAccessor<IObjectSerializer> | accessor | The accessor delegate. | 
