Class ConfigurationHandler
this class handles the internal configuration of the controller api. This class must be public with a default ctor to enable reflection creation from the runtime when the configuration is requested.
Todo when adding a new section:
- Create a new parser method with signature void Method();
- Implement the parser with a simple check for the section and a trace if the section is missing.
- Add trace statements to TraceConfiguration().
- Create default values on the CapiConfig class to keep the api less sensitive to bad config files.
- Register the parser _sectionParsers array to enable execution.
Inheritance
System.Object
ConfigurationHandler
Implements
System.Configuration.IConfigurationSectionHandler
Namespace: ABB.Robotics.Controllers
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public sealed class ConfigurationHandler
Constructors
ConfigurationHandler()
Initializes a new instance of the ConfigurationHandler class.
Declaration
public ConfigurationHandler()
Methods
Create(Object, Object, XmlNode)
creates the configuration object
Declaration
public object Create(object parent, object configContext, XmlNode section)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent | parent object |
System.Object | configContext | context of current configuration |
System.Xml.XmlNode | section | section in config file |
Returns
Type | Description |
---|---|
System.Object | the configuration object |
Implements
System.Configuration.IConfigurationSectionHandler