![]() |
Sphyrnidae Common Library
2.0.1
Shared Utilities/Library
|
Interface definition for looking up settings (Variables, features, user preferences, etc) More...
Public Member Functions | |
| Task< IEnumerable< T > > | GetAll () |
| Retrieves all of the settings at once so that these can be cached locally More... | |
| T | GetItem (CaseInsensitiveBinaryList< T > settingsCollection, string key) |
| Retrieves a single setting from the settingsCollection (populated from GetAll) More... | |
| string | GetValue (T setting) |
| Retrieves the value from the setting More... | |
Properties | |
| string | Key [get] |
| Name of the unique key for this setting (can be sub-divided) More... | |
| int | CachingSeconds [get] |
| How long should the full collection of settings be cached More... | |
Interface definition for looking up settings (Variables, features, user preferences, etc)
This interface is not meant to be directly inherited from. You should inherit your specific interface from this
| T | : | LookupSetting |
| Task<IEnumerable<T> > Sphyrnidae.Common.Lookup.ILookupSettings< T >.GetAll | ( | ) |
Retrieves all of the settings at once so that these can be cached locally
Implemented in Sphyrnidae.Common.Lookup.BaseLookupSetting< T >.
| T Sphyrnidae.Common.Lookup.ILookupSettings< T >.GetItem | ( | CaseInsensitiveBinaryList< T > | settingsCollection, |
| string | key | ||
| ) |
Retrieves a single setting from the settingsCollection (populated from GetAll)
| settingsCollection | The full collection of settings |
| key | The key to match on |
Implemented in Sphyrnidae.Common.Lookup.BaseLookupSetting< T >.
| string Sphyrnidae.Common.Lookup.ILookupSettings< T >.GetValue | ( | T | setting | ) |
Retrieves the value from the setting
| setting | The setting |
Implemented in Sphyrnidae.Common.Lookup.BaseLookupSetting< T >.
|
get |
How long should the full collection of settings be cached
|
get |
Name of the unique key for this setting (can be sub-divided)