Class StateFileSerializer
Inheritance
System.Object
StateFileSerializer
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Aurigma.DesignAtoms.Serialization
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class StateFileSerializer : IStateFileSerializer
Constructors
StateFileSerializer(ProductJsonConverter.Factory, JsonColorConverter, IMergeUtil)
Declaration
public StateFileSerializer(ProductJsonConverter.Factory productConverterFactory, JsonColorConverter colorConverter, IMergeUtil mergeUtil)
Parameters
| Type | Name | Description |
|---|---|---|
| ProductJsonConverter.Factory | productConverterFactory | |
| JsonColorConverter | colorConverter | |
| IMergeUtil | mergeUtil |
Fields
_logger
Declaration
protected static readonly Logger _logger
Field Value
| Type | Description |
|---|---|
| NLog.Logger |
DataSchemaKey
Declaration
public const string DataSchemaKey = "dataSchema"
Field Value
| Type | Description |
|---|---|
| System.String |
Methods
Deserialize(Stream, ISerializableStorage, Boolean)
Declaration
public virtual State Deserialize(Stream stateStream, ISerializableStorage resourceStorage = null, bool optimizedState = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stateStream | |
| ISerializableStorage | resourceStorage | |
| System.Boolean | optimizedState |
Returns
| Type | Description |
|---|---|
| State |
Deserialize<TState, TUiConfig>(Stream, ISerializableStorage, Boolean, TUiConfig)
Declaration
protected TState Deserialize<TState, TUiConfig>(Stream stateStream, ISerializableStorage resourceStorage = null, bool optimizedState = false, TUiConfig defaultUiConfig = null)
where TState : State where TUiConfig : UiConfig
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stateStream | |
| ISerializableStorage | resourceStorage | |
| System.Boolean | optimizedState | |
| TUiConfig | defaultUiConfig |
Returns
| Type | Description |
|---|---|
| TState |
Type Parameters
| Name | Description |
|---|---|
| TState | |
| TUiConfig |
Serialize(State, Stream, ISerializableStorage, Boolean)
Declaration
public void Serialize(State state, Stream outStream, ISerializableStorage resourceStorage = null, bool convertUrlSourcesToStorage = false)
Parameters
| Type | Name | Description |
|---|---|---|
| State | state | |
| System.IO.Stream | outStream | |
| ISerializableStorage | resourceStorage | |
| System.Boolean | convertUrlSourcesToStorage |