Skip to content

Instantly share code, notes, and snippets.

@shibayan
Created April 3, 2013 03:05
Show Gist options
  • Save shibayan/5298131 to your computer and use it in GitHub Desktop.
Save shibayan/5298131 to your computer and use it in GitHub Desktop.
using System.Configuration;
namespace SwissKnife.T4
{
public static class AppSettings
{
public static string ClientValidationEnabled
{
get { return ConfigurationManager.AppSettings["ClientValidationEnabled"]; }
}
public static class Facebook
{
public static string AppId
{
get { return ConfigurationManager.AppSettings["Facebook:AppId"]; }
}
public static string AppNamespace
{
get { return ConfigurationManager.AppSettings["Facebook:AppNamespace"]; }
}
public static string AppSecret
{
get { return ConfigurationManager.AppSettings["Facebook:AppSecret"]; }
}
public static string AuthorizationRedirectPath
{
get { return ConfigurationManager.AppSettings["Facebook:AuthorizationRedirectPath"]; }
}
public static class VerifyToken
{
public static string User
{
get { return ConfigurationManager.AppSettings["Facebook:VerifyToken:User"]; }
}
}
}
public static string PreserveLoginUrl
{
get { return ConfigurationManager.AppSettings["PreserveLoginUrl"]; }
}
public static string UnobtrusiveJavaScriptEnabled
{
get { return ConfigurationManager.AppSettings["UnobtrusiveJavaScriptEnabled"]; }
}
public static class Webpages
{
public static string Enabled
{
get { return ConfigurationManager.AppSettings["webpages:Enabled"]; }
}
public static string Version
{
get { return ConfigurationManager.AppSettings["webpages:Version"]; }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment