Skip to content

Instantly share code, notes, and snippets.

View jsclayton's full-sized avatar

John Clayton jsclayton

View GitHub Profile
@jsclayton
jsclayton / UserVoiceOAuthHelper.cs
Created September 13, 2011 21:48
UserVoice OAuth helper for SSO
using System;
using RestSharp;
using RestSharp.Authenticators;
namespace UserVoice.Api
{
public class UserVoiceOAuthToken
{
public string OauthToken { get; set; }
public string OauthTokenSecret { get; set; }
@jsclayton
jsclayton / Attribution.txt
Created June 6, 2011 18:07
Static Reflection in C#
Originally posted by Joel Abrahamsson
http://joelabrahamsson.com/entry/getting-property-and-method-names-using-static-reflection-in-c-sharp
using System.Web;
namespace NetflixDemo
{
public class AppHarborHttpContextWrapper : HttpContextWrapper
{
private readonly HttpContext httpContext;
public AppHarborHttpContextWrapper(HttpContext httpContext) : base(httpContext)
{