Class ServicePreferenceMapper
Handle the mapping of some sections in userpreference to actually be stored in the config, registry and password_rules tables;
backwards compatibility with Service
Inheritance
ServicePreferenceMapper
Assembly: SoDataBase.dll
Syntax
public class ServicePreferenceMapper
Constructors
ServicePreferenceMapper(ServicePreferenceMappings, ICacheManager)
Handle the mapping of some sections in userpreference to actually be stored in the config, registry and password_rules tables;
backwards compatibility with Service
Declaration
public ServicePreferenceMapper(ServicePreferenceMappings mappings, ICacheManager cacheManager)
Parameters
Properties
MappedSections
Handle the mapping of some sections in userpreference to actually be stored in the config, registry and password_rules tables;
backwards compatibility with Service
Declaration
public HashSet<string> MappedSections { get; }
Property Value
Mappings
Handle the mapping of some sections in userpreference to actually be stored in the config, registry and password_rules tables;
backwards compatibility with Service
Declaration
public Dictionary<(string section, string key), ServicePreferenceMappings.PreferenceMappingInfo> Mappings { get; }
Property Value
Methods
If the given section is one of ours, read all our mapped stuff and update the cache.
Declaration
public string[] CheckForMappingAndFetchIntoCache(string section)
Parameters
| Type |
Name |
Description |
| string |
section |
|
Returns
Handle the mapping of some sections in userpreference to actually be stored in the config, registry and password_rules tables;
backwards compatibility with Service
Declaration
public Task<int> CheckForMappingAndSavePreferenceAsync(string section, string key, string value, int ownerId, CancellationToken cancellationToken = default)
Parameters
Returns
FetchIndividualValues()
Handle the mapping of some sections in userpreference to actually be stored in the config, registry and password_rules tables;
backwards compatibility with Service
Declaration
public List<(string section, string key, int associateId, string value)> FetchIndividualValues()
Returns
FetchSinglePreference(string, string, PreferenceLevel, int)
Handle the mapping of some sections in userpreference to actually be stored in the config, registry and password_rules tables;
backwards compatibility with Service
Declaration
public (int fakeId, string rawValue) FetchSinglePreference(string section, string key, PreferenceLevel prefLevel, int ownerId)
Parameters
Returns
Extension Methods