diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Agendas/trunk/src/Agendas.Configurations/TwitterSendTwitterConfigurationElement.cs	Fri Aug 05 16:55:18 2011 -0300
@@ -0,0 +1,31 @@
+using System.Configuration;
+
+namespace AltNetHispano.Agendas.Configurations
+{
+	public class TwitterSendTwitterConfigurationElement : ConfigurationElement
+	{
+		[ConfigurationProperty("consumerKey")]
+		public string ConsumerKey
+		{
+			get { return base["consumerKey"] as string; }
+		}
+
+		[ConfigurationProperty("consumerSecret")]
+		public string ConsumerSecret
+		{
+			get { return base["consumerSecret"] as string; }
+		}
+
+		[ConfigurationProperty("accessToken")]
+		public string AccessToken
+		{
+			get { return base["accessToken"] as string; }
+		}
+
+		[ConfigurationProperty("accessTokenSecret")]
+		public string AccessTokenSecret
+		{
+			get { return base["accessTokenSecret"] as string; }
+		}
+	}
+}
\ No newline at end of file