Пример #1
0
		public static async Task<Account> CreateAccount(string username, byte[] passwordhash, byte[] passwordsalt)
		{
			var account = new Account();
			account.AccountData = await AccountData.CreateAccountData(username, passwordhash, passwordsalt);

			return account;
		}
Пример #2
0
		public static async Task<Account> FromUsername(string username)
		{
			var account = new Account();
			account.AccountData = await AccountData.FromUsername(username);

			return account;
		}
Пример #3
0
		public void Remove(Account account)
		{
			Account ignored;
			OnlineUsers.TryRemove(account.GetUsername(), out ignored);
		}
Пример #4
0
		public void Add(Account account)
		{
			OnlineUsers.TryAdd(account.GetUsername(), account);
		}