public static bool Load()
{
if (_section == null)
{
lock (_lock)
{
if (_section == null)
{
//Configuration exeConfig = ConfigurationManager.OpenExeConfiguration(Environment.GetCommandLineArgs()[0]);
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var section = (ReviewNotifierConfiguration)config.GetSection(_sectionName);
if (section == null)
{
section = new ReviewNotifierConfiguration();
section.SectionInformation.AllowExeDefinition = ConfigurationAllowExeDefinition.MachineToApplication;
section.SectionInformation.AllowLocation = false;
}
_config = config;
_section = section;
}
}
}
return _section != null;
}