public static bool LoadRSA(string token) { if (String.IsNullOrEmpty(token)) { return(false); } lock (_locker1) { RSACryptoServiceProvider rsa = null; if (_tokenDic.TryGetValue(token, out rsa)) { if (null != rsa) { lock (_locker2) { _rsaDic[OperationContext.Current.GetHashCode()] = rsa; ClientManager.Active(token); return(true); } } } } return(false); }