Back to Website
Show / Hide Table of Contents

Class ProductJsonConverter

Inheritance
System.Object
ProductJsonConverter
Namespace: Aurigma.DesignAtoms.Serialization
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
Type Name Description
IConfiguration configuration
IFontService fontService
IFileCache fileCache
IImageLoader imageLoader
IColorManagement colorManagement
Autofac.ILifetimeScope scope
ISvgReaderFactory svgReaderFactory
ISerializableStorage serializationStorage
ISerializableStorage runTimeStorage
System.Boolean convertUrlSourcesToStorage
Newtonsoft.Json.JsonSerializerSettings jsonSerializerSettings

Fields

_colorManagement

Declaration
protected readonly IColorManagement _colorManagement
Field Value
Type Description
IColorManagement

_configuration

Declaration
protected readonly IConfiguration _configuration
Field Value
Type Description
IConfiguration

_fileCache

Declaration
protected readonly IFileCache _fileCache
Field Value
Type Description
IFileCache

_fontService

Declaration
protected readonly IFontService _fontService
Field Value
Type Description
IFontService

_imageLoader

Declaration
protected readonly IImageLoader _imageLoader
Field Value
Type Description
IImageLoader

_jsonSerializerSettings

Declaration
protected readonly JsonSerializerSettings _jsonSerializerSettings
Field Value
Type Description
Newtonsoft.Json.JsonSerializerSettings

_runTimeStorage

Declaration
protected readonly ISerializableStorage _runTimeStorage
Field Value
Type Description
ISerializableStorage

_scope

Declaration
protected readonly ILifetimeScope _scope
Field Value
Type Description
Autofac.ILifetimeScope

_serializationStorage

Declaration
protected readonly ISerializableStorage _serializationStorage
Field Value
Type Description
ISerializableStorage

_svgReaderFactory

Declaration
protected readonly ISvgReaderFactory _svgReaderFactory
Field Value
Type Description
ISvgReaderFactory

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
Type Name Description
IConfiguration configuration
IFileCache fileCache
ISerializableStorage serializationStorage
ISerializableStorage runTimeStorage
IImageLoader imageLoader
IColorManagement colorManagement
IFontService fontService
Autofac.ILifetimeScope scope
ISvgReaderFactory svgReaderFactory
System.Boolean convertUrlSourcesToStorage
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
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback