view Agendas/trunk/src/Agendas.Configurations/ConfigurationManager.cs @ 164:93aa103f75ec

Merge
author nelopauselli
date Fri, 05 Aug 2011 21:55:45 -0300
parents 734d3f0853bf
children
line wrap: on
line source

using System.Configuration;

namespace AltNetHispano.Agendas.Configurations
{
	public class AgendasConfigurationManager
	{
		public static PublicadoresConfigurationSection Publicadores
		{
			get
			{
				var config = ConfigurationManager.GetSection("publicadores") as PublicadoresConfigurationSection;
				if (config == null)
					throw new PublicadoresConfigurationException();
				return config;
			}
		}
	}
}