コード例 #1
0
		public async static Task<User> GetUserAsync() 
		{
			if (_user == null) 
			{
				_user = await new AkavacheEntity().GetObjectAsync<User> (USR_KEY);
			}

			return _user;
		}
コード例 #2
0
		public async static Task ClearUser()
		{
			_user = null;
			await new AkavacheEntity().RemoveObjectAsync<User>(USR_KEY);
		}
コード例 #3
0
		public async static Task SaveUserAsync(User user)
		{
			await new AkavacheEntity().InsertObjectAsync(USR_KEY, user);

			_user = user;
		}