/// <summary>
		/// Loads the default factory and additional ones given by the configuration.
		/// </summary>
		/// <returns>A new instance of <see cref="OpenIdExtensionFactoryAggregator"/>.</returns>
		internal static OpenIdExtensionFactoryAggregator LoadFromConfiguration() {
			var factoriesElement = DotNetOpenAuth.Configuration.OpenIdElement.Configuration.ExtensionFactories;
			var aggregator = new OpenIdExtensionFactoryAggregator();
			aggregator.Factories.Add(new StandardOpenIdExtensionFactory());
			aggregator.factories.AddRange(factoriesElement.CreateInstances(false));
			return aggregator;
		}
        /// <summary>
        /// Loads the default factory and additional ones given by the configuration.
        /// </summary>
        /// <returns>A new instance of <see cref="OpenIdExtensionFactoryAggregator"/>.</returns>
        internal static OpenIdExtensionFactoryAggregator LoadFromConfiguration()
        {
            var factoriesElement = DotNetOpenAuth.Configuration.OpenIdElement.Configuration.ExtensionFactories;
            var aggregator       = new OpenIdExtensionFactoryAggregator();

            aggregator.Factories.Add(new StandardOpenIdExtensionFactory());
            aggregator.factories.AddRange(factoriesElement.CreateInstances(false));
            return(aggregator);
        }
        /// <summary>
        /// Loads the default factory and additional ones given by the configuration.
        /// </summary>
        /// <returns>A new instance of <see cref="OpenIdExtensionFactoryAggregator"/>.</returns>
        internal static OpenIdExtensionFactoryAggregator LoadFromConfiguration()
        {
            Contract.Ensures(Contract.Result <OpenIdExtensionFactoryAggregator>() != null);
            var factoriesElement = DotNetOpenAuth.Configuration.DotNetOpenAuthSection.Configuration.OpenId.ExtensionFactories;
            var aggregator       = new OpenIdExtensionFactoryAggregator();

            aggregator.Factories.Add(new StandardOpenIdExtensionFactory());
            aggregator.factories.AddRange(factoriesElement.CreateInstances(false));
            return(aggregator);
        }
 /// <summary>
 /// Loads the default factory and additional ones given by the configuration.
 /// </summary>
 /// <returns>A new instance of <see cref="OpenIdExtensionFactoryAggregator"/>.</returns>
 internal static OpenIdExtensionFactoryAggregator LoadFromConfiguration()
 {
     Contract.Ensures(Contract.Result<OpenIdExtensionFactoryAggregator>() != null);
     var factoriesElement = DotNetOpenAuth.Configuration.DotNetOpenAuthSection.Configuration.OpenId.ExtensionFactories;
     var aggregator = new OpenIdExtensionFactoryAggregator();
     aggregator.Factories.Add(new StandardOpenIdExtensionFactory());
     aggregator.factories.AddRange(factoriesElement.CreateInstances(false));
     return aggregator;
 }