view Agendas/trunk/src/Agendas.Configurations/ConfigurationManager.cs @ 179:1deccd6c3cb2

Aplicando seguridad x roles en sitio web
author nelopauselli
date Mon, 08 Aug 2011 15:24:26 -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;
			}
		}
	}
}