Sphyrnidae Common Library  2.0.1
Shared Utilities/Library
Sphyrnidae.Common.Lookup.SettingsLookup< T, TS > Class Template Reference

Retrieves a setting that can be dynamically set More...

Static Public Member Functions

static string Get (ILookupServices< T, TS > services, string name, string defaultValue)
 Retrieves a setting More...
 

Detailed Description

Retrieves a setting that can be dynamically set

The actual retrieval of the setting is retrieved from cache. The setting of cache, and the time to cache is implemented by ILookupSettings, so this interface must be implemented

Type Constraints
T :ILookupSettings<TS> 
TS :LookupSetting 

Member Function Documentation

◆ Get()

static string Sphyrnidae.Common.Lookup.SettingsLookup< T, TS >.Get ( ILookupServices< T, TS >  services,
string  name,
string  defaultValue 
)
static

Retrieves a setting

Parameters
servicesThe collection of lookup services
nameThe name of the setting to retrieve
defaultValueIf the setting is not found, or there is an error retrieving the setting, this will be returned instead
Returns
The string setting (If you need to convert to something else, that will be done outside this call)

The documentation for this class was generated from the following file: