GetConfigurations
The Client class accesses configuration information through the ConfigServer.aspx page in conjunction with the IDO Runtime Service and IDORuntimeHost.exe developer tool. The Web Server application, IDO Runtime Service, and IDORuntimeHost.exe are all installed as part of a basic server installation.
Example 1 – Get a list of configurations
This example code retrieves an array of configuration information classes from the Default configuration group through the ConfigServer.aspx page in IDORequestService, where the URL is like this:
http://servername/IDORequestService/ConfigServer.aspxwhere servername is the DNS or IP address of the server where the Mongoose configurations are installed and accessed.
ConfigurationInfoList configList = Client.GetConfigurations(); // Config info can be enumerated as follows foreach ( ConfigurationInfo config in configList ) { Console.WriteLine( config.Name ); }
Example 2 – Get the configurations for a specific configuration group
This example code retrieves an array of configuration information from a specified configuration server and configuration group name, using the IDORuntimeHost.exe.
ConfigurationInfoList configList = Client.GetConfigurations( configServerURL, configGroup ); // Config info can be enumerated as follows foreach ( ConfigurationInfo config in configList ) { Console.WriteLine( config.Name ); }