internal bool TryGetUser(UserId userId, out UserProfile profile) { return(_profiles.TryGetValue(userId.ToString(), out profile)); }
public void AddUser(UserId userId, string name, byte[] image) { UserProfile profile = new UserProfile(userId, name, image); _profiles.AddOrUpdate(userId.ToString(), profile, (key, old) => profile); }