private void LoadAccessToken() { try { OAuthInfoDao dao = new OAuthInfoDao(); var oauths = dao.GetOnlineOAuthInfo(); foreach (OAuthInfo current in oauths) { CacheSet(current.AppId, current.Token, current.ExpirationUtc.Value, current.Id, current.SessionKey, current.SessionSecret, current.AppSecret); } } catch (Exception ex) { Logger.WriterLogger("OAuth.AccessToken", ex, LoggerType.Error); } }
public OAuthController( ) { oAuthDao = new OAuthInfoDao(); }