private void EnsureLoggingSection()
 {
     loggingSection = GetSectionOfType <LoggingSettings>();
     if (loggingSection == null)
     {
         loggingSectionIsNew = true;
         loggingSection      = SourceModel.AddSection(LoggingSettings.SectionName, new LoggingSettings());
     }
 }
            private void EnsureExceptionHandlingSection()
            {
                exceptionSettingsSection = GetSectionOfType <ExceptionHandlingSettings>();

                if (exceptionSettingsSection == null)
                {
                    var section = new ExceptionHandlingSettings();
                    exceptionSettingsSection = SourceModel.AddSection(ExceptionHandlingSettings.SectionName, section);
                }
            }
Beispiel #3
0
            private SectionViewModel EnsureConnectionStringsSection()
            {
                var connectionStringsSection = GetSectionOfType <ConnectionStringsSection>();

                if (connectionStringsSection == null)
                {
                    connectionStringsSection = SourceModel.AddSection("connectionStrings", new ConnectionStringsSection());
                }

                return(connectionStringsSection);
            }