comparison Agendas/trunk/src/Agendas.Configurations/TwitterSendTwitterConfigurationElement.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 TwitterSendTwitterConfigurationElement : ConfigurationElement
6 {
7 [ConfigurationProperty("consumerKey")]
8 public string ConsumerKey
9 {
10 get { return base["consumerKey"] as string; }
11 }
12
13 [ConfigurationProperty("consumerSecret")]
14 public string ConsumerSecret
15 {
16 get { return base["consumerSecret"] as string; }
17 }
18
19 [ConfigurationProperty("accessToken")]
20 public string AccessToken
21 {
22 get { return base["accessToken"] as string; }
23 }
24
25 [ConfigurationProperty("accessTokenSecret")]
26 public string AccessTokenSecret
27 {
28 get { return base["accessTokenSecret"] as string; }
29 }
30 }
31 }