Interface IConfigDataStore
Defines load/save of Connection configuration data. Default implementation in IsolatedStorageConfigDataStore. Use ConfigDataStoreAttribute to declare replacement implementation if you want to store data .
Namespace: SuperOffice.ErpSync.ConnectorWS
Assembly: SuperOffice.Plugins.dll
Syntax
public interface IConfigDataStore
Methods
DeleteData(string)
Remove all trace of configuration from data store.
Declaration
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 values listed in the members collection.
Passwords should be decrypted before being placed in data output collection.
Declaration
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 to be loaded. |
Dictionary<string, string> | data | Fill this collection of field names and values in CultureEncoded format: "[I:1234]" rather than 1234. |
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
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 values in CultureEncoded format: "[I:1234]" rather than 1234. |