Example #1
0
        public static bool GetOpenId(string key, out string openId)
        {
            openId = string.Empty;
            object obj = RegisterOpenIDCache.GetValue(key);

            if (obj == null)
            {
                return(false);
            }
            else
            {
                openId = obj.ToString();
                return(true);
            }
        }
Example #2
0
 public static void AddOpenId(string key, string openId, int expires)
 {
     RegisterOpenIDCache.Add(key, openId, expires);
 }