Class JsonStorageSetup
This storage setup extends FileSetupBase to specify parameters for an access to JSON files.
Inherited Members
Namespace: TeleScope.Persistence.Json
Assembly: TeleScope.Persistence.Json.dll
Syntax
public class JsonStorageSetup : FileSetupBase
Constructors
| Improve this Doc View SourceJsonStorageSetup(FileInfo)
The default constructor calls the constructor of the base class and
defines UTF8
as default Encoder property.
Declaration
public JsonStorageSetup(FileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | fileInfo | The information about the file that will get accessed by a file storage. |
JsonStorageSetup(String)
The constructor calls the according base class constructor and leaves the default settings of the property.
Declaration
public JsonStorageSetup(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | The file represented as string, the storage is attached to. |
Properties
| Improve this Doc View SourceEncoder
Gets or sets the encoding of the file.
Declaration
public Encoding Encoder { get; set; }
Property Value
Type | Description |
---|---|
Encoding |
Format
Gets or sets the formatting of the JSON file.
The default value is
Declaration
public Formatting Format { get; set; }
Property Value
Type | Description |
---|---|
Formatting |
Settings
Gets or sets the Newtonsoft JSON setting.
Declaration
public JsonSerializerSettings Settings { get; set; }
Property Value
Type | Description |
---|---|
JsonSerializerSettings |