private static void AddAutoscalingTypeRegistrationProviderElement(Common.Configuration.Design.IDesignConfigurationSource configurationSource, TypeRegistrationProvidersConfigurationSection typeRegistrationSection)
        {
            var element = new TypeRegistrationProviderElement
            {
                Name = RetryPolicyConfigurationSettings.SectionName,
                SectionName = RetryPolicyConfigurationSettings.SectionName
            };

            typeRegistrationSection.TypeRegistrationProviders.Add(element);
            configurationSource.AddLocalSection(TypeRegistrationProvidersConfigurationSection.SectionName, typeRegistrationSection);
        }
            public IConfigureTypeRegistration AddTypeRegistrationsProviderNamed(string typeRegistrationProviderName)
            {
                if (string.IsNullOrEmpty(typeRegistrationProviderName))
                {
                    throw new ArgumentException(Resources.ExceptionStringNullOrEmpty, "typeRegistrationProviderName");
                }

                currentTypeRegistration = new TypeRegistrationProviderElement
                {
                    Name = typeRegistrationProviderName
                };

                typeRegistrationsConfigurationSection.TypeRegistrationProviders.Add(currentTypeRegistration);

                return(this);
            }