djmc/SimpleOAuth.Net — pull request #1 by cbenard (2012-03-26 15:15:33+00:00)
Title: Windows Phone 7 Support

Hello Daniel. I sent you a message on Facebook, but due to the way it handles messages from non-friends, it may have gone to your "Other" folder that is under Messages. My Facebook profile is [here](http://facebook.com/chrisbenard).

I forked SimpleOAuth.Net and added Windows Phone 7 support. I also created a test app.

I originally moved the Samples under a Samples subfolder in the solution, but then I noticed you were using Visual Studio Express. Since I didn't hear back from you, I erred on the side of caution and moved them back to the root, since Visual Studio Express doesn't support solution folders.

The Windows Phone support is in a different solution, since I figured that a lot of people probably don't have the Windows Phone SDK installed and I didn't want to break the build of your regular solution. However, *both* solutions do open in Express. Yours opens in Visual C# Express, and SimpleOAuth.Net opens in [Visual Studio 2010 Express for Windows Phone](http://www.microsoft.com/visualstudio/en-us/products/2010-editions/windows-phone-developer-tools).

The test app uses a pivot control and tests both term.ie and Twitter. I hope you find it useful enough to pull back into your repo. I tried to keep to the spirit of yours. I didn't use any dependencies and only had to make minimal changes. I had to change the way you set the Authorization header to work in both Silverlight/WP as well as .Net 3.0. Additionally, WP doesn't support SortedDictionary, so I wrote my own that implements the interface in the same way so that your code could use it.

When C# 5.0 is released, I'll redo it to support the new async/await Task API, but for now, I didn't use the [Async CTP](http://msdn.microsoft.com/en-us/vstudio/gg316360) since you didn't want any dependencies.

I plan to write a small Twitter library on top of this. I did all this because TweetSharp/Hammock is too heavy and obfuscated for me to use effectively for my app.

Thanks,
Chris Benard