Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Configurations/ConfigurationManager.cs @ 158:734d3f0853bf
Manejando configuración de los publicadores con una sección propia en los .config
Agregando la opción de habilitar / deshabilitar un publicador
author | nelopauselli |
---|---|
date | Fri, 05 Aug 2011 16:55:18 -0300 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
157:f17252543cbf | 158:734d3f0853bf |
---|---|
1 using System.Configuration; | |
2 | |
3 namespace AltNetHispano.Agendas.Configurations | |
4 { | |
5 public class AgendasConfigurationManager | |
6 { | |
7 public static PublicadoresConfigurationSection Publicadores | |
8 { | |
9 get | |
10 { | |
11 var config = ConfigurationManager.GetSection("publicadores") as PublicadoresConfigurationSection; | |
12 if (config == null) | |
13 throw new PublicadoresConfigurationException(); | |
14 return config; | |
15 } | |
16 } | |
17 } | |
18 } |