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; }
public static async Task<Account> FromUsername(string username) { var account = new Account(); account.AccountData = await AccountData.FromUsername(username); return account; }
public void Remove(Account account) { Account ignored; OnlineUsers.TryRemove(account.GetUsername(), out ignored); }
public void Add(Account account) { OnlineUsers.TryAdd(account.GetUsername(), account); }