internal InstrumentationConfigurationSectionBuilder(IConfigurationSourceBuilder configurationSourceBuilderRoot)
            {

                if (configurationSourceBuilderRoot.Contains(InstrumentationConfigurationSection.SectionName))
                    throw new InvalidOperationException("ConfigurationSourceBuilder already contains instrumentation settings");

                configurationSourceBuilderRoot.AddSection(InstrumentationConfigurationSection.SectionName, section);
                this.root = configurationSourceBuilderRoot;
            }
Ejemplo n.º 2
0
            internal InstrumentationConfigurationSectionBuilder(IConfigurationSourceBuilder configurationSourceBuilderRoot)
            {
                if (configurationSourceBuilderRoot.Contains(InstrumentationConfigurationSection.SectionName))
                {
                    throw new InvalidOperationException("ConfigurationSourceBuilder already contains instrumentation settings");
                }

                configurationSourceBuilderRoot.AddSection(InstrumentationConfigurationSection.SectionName, section);
                this.root = configurationSourceBuilderRoot;
            }
            public ConfigureTypeRegistrationBuilder(IConfigurationSourceBuilder configurationSourceBuilder, bool empty)
            {
                typeRegistrationsConfigurationSection = new TypeRegistrationProvidersConfigurationSection();
                if (empty)
                {
                    typeRegistrationsConfigurationSection.TypeRegistrationProviders.Clear();
                }

                configurationSourceBuilder.AddSection(TypeRegistrationProvidersConfigurationSection.SectionName, typeRegistrationsConfigurationSection);
            }
        /// <summary>
        /// Main entry point to configuration a <see cref="LoggingSettings"/> section.
        /// </summary>
        /// <param name="configurationSourceBuilder">The builder interface to extend.</param>
        /// <returns></returns>
        public static ILoggingConfigurationStart ConfigureLogging(this IConfigurationSourceBuilder configurationSourceBuilder)
        {
            if (configurationSourceBuilder == null)
            {
                throw new ArgumentNullException("configurationSourceBuilder");
            }

            LoggingSettings loggingSettings = new LoggingSettings();

            configurationSourceBuilder.AddSection(LoggingSettings.SectionName, loggingSettings);

            return(new LoggingConfigurationBuilder(loggingSettings));
        }
        /// <summary>
        /// Main entry point to create a <see cref="CacheManagerSettings"/> section.
        /// </summary>
        /// <param name="configurationSourceBuilder">The builder interface to extend.</param>
        /// <returns>A fluent interface to further configure the caching configuration section.</returns>
        public static ICachingConfiguration ConfigureCaching(this IConfigurationSourceBuilder configurationSourceBuilder)
        {
            if (configurationSourceBuilder == null)
            {
                throw new ArgumentNullException("configurationSourceBuilder");
            }

            CacheManagerSettings cacheSettings = new CacheManagerSettings();

            configurationSourceBuilder.AddSection(CacheManagerSettings.SectionName, cacheSettings);

            return(new CachingConfigurationBuilder(cacheSettings));
        }
 public ConfigureSecuritySettingsBuilder(IConfigurationSourceBuilder configurationSuorceBuilder)
 {
     securitySettings = new SecuritySettings();
     configurationSuorceBuilder.AddSection(SecuritySettings.SectionName, securitySettings);
 }
Ejemplo n.º 7
0
 public DataConfigurationBuilder(IConfigurationSourceBuilder builder)
 {
     Builder = builder;
     builder.AddSection("connectionStrings", connectionStringSection);
 }
Ejemplo n.º 8
0
 public ConfigureCryptographyBuilder(IConfigurationSourceBuilder configurationSourceBuilder)
 {
     cryptoSettings = new CryptographySettings();
     configurationSourceBuilder.AddSection(CryptographySettings.SectionName, cryptoSettings);
 }
Ejemplo n.º 9
0
 internal ExceptionPolicyBuilder(IConfigurationSourceBuilder configurationSourceBuilder)
 {
     configurationSourceBuilder.AddSection(ExceptionHandlingSettings.SectionName, section);
 }
Ejemplo n.º 10
0
 public ConfigureSecuritySettingsBuilder(IConfigurationSourceBuilder configurationSuorceBuilder)
 {
     securitySettings = new SecuritySettings();
     configurationSuorceBuilder.AddSection(SecuritySettings.SectionName, securitySettings);
 }