Ejemplo n.º 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;
		}
Ejemplo n.º 2
0
		public static async Task<Account> FromUsername(string username)
		{
			var account = new Account();
			account.AccountData = await AccountData.FromUsername(username);

			return account;
		}
Ejemplo n.º 3
0
		public void Remove(Account account)
		{
			Account ignored;
			OnlineUsers.TryRemove(account.GetUsername(), out ignored);
		}
Ejemplo n.º 4
0
		public void Add(Account account)
		{
			OnlineUsers.TryAdd(account.GetUsername(), account);
		}