GetConfigurations

The GetConfigurations method returns a ConfigurationInfo class which includes a subset of configuration properties and all the referenced application properties.

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.aspx

where 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 );
}
Note: The IDORuntimeHost.exe must be running for this method to work.

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 );
}
Note: The IDORuntimeHost.exe must be running for this method to work.