Use dynamic interfaces
interface IMySettings
{
string Option1 { get; }
string Option2 { get; }
ISubConfig Section { get; }
}
// Get once, use as a singleton:
var hotSettings = provider.CreateHot<IMySettings>();
// Properties of the 'hotSettings' object are mutable.
// They will automatically return most up-to-date values.var section = hotSettings.Section;
// access a consistent view of 'section` propertiesRelated pages
Obtain settings from providerAssign sources to typesLast updated
Was this helpful?