Class ProductJsonConverter
Inheritance
System.Object
ProductJsonConverter
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ProductJsonConverter : JsonConverter
Constructors
ProductJsonConverter(IConfiguration, IFontService, IFileCache, IImageLoader, IColorManagement, ILifetimeScope, ISvgReaderFactory, ISerializableStorage, ISerializableStorage, Boolean, JsonSerializerSettings)
Declaration
public ProductJsonConverter(IConfiguration configuration, IFontService fontService, IFileCache fileCache, IImageLoader imageLoader, IColorManagement colorManagement, ILifetimeScope scope, ISvgReaderFactory svgReaderFactory, ISerializableStorage serializationStorage = null, ISerializableStorage runTimeStorage = null, bool convertUrlSourcesToStorage = false, JsonSerializerSettings jsonSerializerSettings = null)
Parameters
Fields
_colorManagement
Declaration
protected readonly IColorManagement _colorManagement
Field Value
_configuration
Declaration
protected readonly IConfiguration _configuration
Field Value
_fileCache
Declaration
protected readonly IFileCache _fileCache
Field Value
_fontService
Declaration
protected readonly IFontService _fontService
Field Value
_imageLoader
Declaration
protected readonly IImageLoader _imageLoader
Field Value
_jsonSerializerSettings
Declaration
protected readonly JsonSerializerSettings _jsonSerializerSettings
Field Value
| Type |
Description |
| Newtonsoft.Json.JsonSerializerSettings |
|
_runTimeStorage
Declaration
protected readonly ISerializableStorage _runTimeStorage
Field Value
_scope
Declaration
protected readonly ILifetimeScope _scope
Field Value
| Type |
Description |
| Autofac.ILifetimeScope |
|
_serializationStorage
Declaration
protected readonly ISerializableStorage _serializationStorage
Field Value
_svgReaderFactory
Declaration
protected readonly ISvgReaderFactory _svgReaderFactory
Field Value
Properties
ColorConverter
Declaration
protected virtual JsonConverter ColorConverter { get; }
Property Value
| Type |
Description |
| Newtonsoft.Json.JsonConverter |
|
Methods
CanConvert(Type)
Declaration
public override bool CanConvert(Type objectType)
Parameters
| Type |
Name |
Description |
| System.Type |
objectType |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetConverters(IConfiguration, IFileCache, ISerializableStorage, ISerializableStorage, IImageLoader, IColorManagement, IFontService, ILifetimeScope, ISvgReaderFactory, Boolean)
Declaration
protected virtual IEnumerable<JsonConverter> GetConverters(IConfiguration configuration, IFileCache fileCache, ISerializableStorage serializationStorage, ISerializableStorage runTimeStorage, IImageLoader imageLoader, IColorManagement colorManagement, IFontService fontService, ILifetimeScope scope, ISvgReaderFactory svgReaderFactory, bool convertUrlSourcesToStorage)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<Newtonsoft.Json.JsonConverter> |
|
GetInternalConverters()
Declaration
public IEnumerable<JsonConverter> GetInternalConverters()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<Newtonsoft.Json.JsonConverter> |
|
ReadJson(JsonReader, Type, Object, JsonSerializer)
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer topSerializer)
Parameters
| Type |
Name |
Description |
| Newtonsoft.Json.JsonReader |
reader |
|
| System.Type |
objectType |
|
| System.Object |
existingValue |
|
| Newtonsoft.Json.JsonSerializer |
topSerializer |
|
Returns
| Type |
Description |
| System.Object |
|
WriteJson(JsonWriter, Object, JsonSerializer)
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
| Type |
Name |
Description |
| Newtonsoft.Json.JsonWriter |
writer |
|
| System.Object |
value |
|
| Newtonsoft.Json.JsonSerializer |
serializer |
|