Click here to Skip to main content
15,892,199 members
Articles / Programming Languages / C#

WCF over Twitter

Rate me:
Please Sign up or sign in to vote.
4.97/5 (32 votes)
20 Sep 2009Ms-PL7 min read 58K   393   42  
How to code a TransportBindingElement.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace TwitterTransportBinding
{
	public static class ConfigHelper
	{
		static String GetSetting(string key)
		{
			return ConfigurationManager.AppSettings[key];
		}
		public static String ServerAccount
		{
			get
			{
				return GetSetting("ServerAccount");
			}
		}
		public static String ServerPassword
		{
			get
			{
				return GetSetting("ServerPassword");
			}
		}
		public static String ClientAccount
		{
			get
			{
				return GetSetting("ClientAccount");
			}
		}
		public static String ClientPassword
		{
			get
			{
				return GetSetting("ClientPassword");
			}
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Software Developer Freelance
France France
I am currently the CTO of Metaco, we are leveraging the Bitcoin Blockchain for delivering financial services.

I also developed a tool to make IaaS on Azure more easy to use IaaS Management Studio.

If you want to contact me, go this way Smile | :)

Comments and Discussions