private static TokenItem _loadTokenItemByToken(Guid?token) { String storageKey = token.ToString(); TokenItem tokenItem = (TokenItem)StoragePerApplication.Get(storageKey); return(tokenItem); }
private static Guid?_loadTokenValueByUserIdAndAppId(long id, long appId) { String storageKey = _createStorageKeyFromUserIdAndAppId(id, appId); Guid? token = (Guid?)StoragePerApplication.Get(storageKey); return(token); }