Class DefaultSerializationService
A default serialization service.
Inheritance
System.Object
DefaultSerializationService
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Serialization
Assembly: Kephas.Core.dll
Syntax
public class DefaultSerializationService : ISerializationService
Constructors
| Improve this Doc View SourceDefaultSerializationService(IContextFactory, ICollection<IExportFactory<ISerializer, SerializerMetadata>>)
Initializes a new instance of the DefaultSerializationService class.
Declaration
public DefaultSerializationService(IContextFactory contextFactory, ICollection<IExportFactory<ISerializer, SerializerMetadata>> serializerFactories)
Parameters
Type | Name | Description |
---|---|---|
IContextFactory | contextFactory | The context factory. |
System.Collections.Generic.ICollection<IExportFactory<ISerializer, SerializerMetadata>> | serializerFactories | The serializer factories. |
Properties
| Improve this Doc View SourceContextFactory
Gets the context factory.
Declaration
public IContextFactory ContextFactory { get; }
Property Value
Type | Description |
---|---|
IContextFactory | The context factory. |
Methods
| Improve this Doc View SourceGetSerializer(ISerializationContext)
Gets a serializer for the provided context.
Declaration
public ISerializer GetSerializer(ISerializationContext context = null)
Parameters
Type | Name | Description |
---|---|---|
ISerializationContext | context | The context. |
Returns
Type | Description |
---|---|
ISerializer | The serializer. |