/// <summary> /// Construct application wide parameters. /// First process the command line parameters (the highest priority), /// then add the default parameters. That will give us the value /// for the persistant parameter filename. /// Will throw an exception if there is an error anywhere. /// </summary> /// <param name="args">command line arguements</param> public AppParams(string[] args) { _defaultParameters = BuildDefaultParameters(); // Build the command line parameters _commandLineParameters = new ParamBlock(); MergeCommandLine(args, null, null); _siteParameters = new ParamPersistant(this.P <string>("ConfigFile")); _siteParameters.SetParameterDefaultValues(); }
// Load the site parameters. // The initialization of AppParams is a two step process because this step depends on the default and command line parameters public void LoadSiteParameters() { _siteParameters = new ParamPersistant(EntityStorage.GenerateAbsStorageLocation(null, this.P <string>(AppParams.P_CONFIGFILE))); _siteParameters.SetParameterDefaultValues(); }