Esempio n. 1
0
        public static RequestToken get(string token)
        {
            RequestToken r = new RequestToken();
            AccessToken at=new AccessToken();
            string sql="select * from oAuthToken where requesttoken=@requesttoken";
            SQLiteDataReader dr = SQLiteHelper.ExecuteReader(sql,
                new SQLiteParameter("@requesttoken", token));

            dr.Close();

            r.AccessToken = at;
            at.Token = Convert.ToString(dr["AccessSecret"]);

            return r;
        }
Esempio n. 2
0
 public void SaveAccessToken(AccessToken token)
 {
     _accessTokens[token.Token] = token;
 }