Class IsolatedStorageConfigDataStore
Default implementation of IConfigDataStore which stores config data in the user's isolated storage folder isolated per-user, per-assembly, per-appdomain.
Implement your own IConfigDataStore to override and replace this implementation with something else.Implements
Namespace: SuperOffice.ErpSync.ConnectorWS
Assembly: SuperOffice.Plugins.dll
Syntax
[ConfigDataStore("IsolatedStorage", 2147483647)]
public class IsolatedStorageConfigDataStore : Object, IConfigDataStore, IPlugin
Constructors
IsolatedStorageConfigDataStore()
Default implementation of IConfigDataStore which stores config data in the user's isolated storage folder isolated per-user, per-assembly, per-appdomain.
Implement your own IConfigDataStore to override and replace this implementation with something else.Declaration
public IsolatedStorageConfigDataStore()
Methods
DeleteData(String)
Remove all trace of configuration from data store.
Declaration
public void DeleteData(string key)
Parameters
Type | Name | Description |
---|---|---|
String | key | Connection id |
LoadData(String, Dictionary<String, FieldMetadataTypeInfo>, Dictionary<String, String>)
Retrieve data from storage, taking care to only fill the data collection with fields listed in the members collection. Passwords should be decrypted before being placed in data.
Declaration
public void LoadData(string key, Dictionary<string, FieldMetadataTypeInfo> members, Dictionary<string, string> data)
Parameters
Type | Name | Description |
---|---|---|
String | key | Connection id |
Dictionary<String, FieldMetadataTypeInfo> | members | Collection of field names and their types. |
Dictionary<String, String> | data | Collection of field names and CultureFormatted values - to be loaded from storage. |
SaveData(String, Dictionary<String, FieldMetadataTypeInfo>, Dictionary<String, String>)
Persist data to storage, taking care to only store data listed in members collection. Passwords should be stored in encrypted format.
Declaration
public void SaveData(string key, Dictionary<string, FieldMetadataTypeInfo> members, Dictionary<string, string> data)
Parameters
Type | Name | Description |
---|---|---|
String | key | Connection id |
Dictionary<String, FieldMetadataTypeInfo> | members | Collection of field names and their types. |
Dictionary<String, String> | data | Collection of field names and CultureFormatted values to be saved to storage. |