예제 #1
0
        static OAuth()
        {
            if (!File.Exists(HttpContext.Current.Server.MapPath("~/oauth.config")))
            {
                throw new Exception("Need an oauth.config in web root");
            }

            var keys = File.ReadAllText(HttpContext.Current.Server.MapPath("~/oauth.config"));

            Current = new OAuthSecrets(keys.Split('/')[0], keys.Split('/')[1]);
        }
예제 #2
0
        static OAuth()
        {
            if (!File.Exists(HttpContext.Current.Server.MapPath("~/oauth.config")))
            {
                throw new Exception("Need an oauth.config in web root");
            }

            var keys = File.ReadAllText(HttpContext.Current.Server.MapPath("~/oauth.config"));

            Current = new OAuthSecrets(keys.Split('/')[0], keys.Split('/')[1]);
        }