Interface IConfigSettings
Represents an entity that provides a type-safe access to configuration settings that come from Configuration nodes. This class obviates the need for navigation between config nodes on every property get and facilitates faster access to some config parameters that need to be gotten efficiently, as they are now kept cached in RAM in native format (i.e. DateTime vs. string) as fields. Usually classes that implement this interface are singleton and they get registered with the application using IApplication.RegisterConfigSettings() method. Warning: the implementation must be thread-safe and allow property getters to keep reading while ConfigChanged() notification happens
Namespace: NFX.Environment
Assembly: NFX.dll
Syntax
public interface IConfigSettings
Methods
ConfigChanged(IConfigSectionNode)
Notifies the implementer that underlying source configuration has changed and memory-resident fields need to be re-read from config nodes. Usually this method is called by application container when instance of this class has been registered with the application using IApplication.RegisterConfigSettings(). Warning: the implementation must be thread-safe and allow getters to keep reading while notification happens
Declaration
void ConfigChanged(IConfigSectionNode atNode)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | atNode | Passes the most top-level node that covers all of the changes that happened in the source config system. Usually this is a root config node. The capability of source config change detection on node level is not supported by all providers |