Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Configurations/PublicadoresConfigurationSection.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 PublicadoresConfigurationSection : ConfigurationSection | |
6 { | |
7 [ConfigurationProperty("twitter", IsRequired = true)] | |
8 public TwitterConfigurationElement Twitter | |
9 { | |
10 get { return base["twitter"] as TwitterConfigurationElement; } | |
11 } | |
12 | |
13 [ConfigurationProperty("google")] | |
14 public GoogleConfigurationElement Google | |
15 { | |
16 get { return base["google"] as GoogleConfigurationElement; } | |
17 } | |
18 | |
19 [ConfigurationProperty("blog")] | |
20 public BlogConfigurationElement Blog | |
21 { | |
22 get { return base["blog"] as BlogConfigurationElement; } | |
23 } | |
24 } | |
25 } |