TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

IProductSerializer Interface

Provides methods to serialize and deserialize Product objects to and from JSON.

Namespace: Aurigma.DesignAtoms.Serialization.Json.Product
Assembly: Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)

Syntax

C#
public interface IProductSerializer

Examples

You can create an instance of this interface by using dependency injection.
C#
using Aurigma.DesignAtoms.Configuration;
using Aurigma.DesignAtoms.Serialization.Json.Product;
Injector.CurrentFactory = () => DefaultInjectorFactory.Create();
JsonConvert.DefaultSettings = () => DefaultJsonSettings.Get(Injector.Instance.Resolve<IConfiguration>());
var jsonSerializer = Injector.Instance.Resolve<IProductSerializer>();

See Also

Reference

Manual