Ejemplo n.º 1
0
        public override void Process(XFireClient context)
        {
            var usernames = context.Server.Database.QueryUsers(_queryByUsername).Select(a => a.Username).ToList();

            Usernames.AddRange(usernames);

            // Don't really care about these but they're necessary to work properly
            var unknowns = usernames.Select(a => "Unknown").ToList();

            FirstNames.AddRange(unknowns);
            LastNames.AddRange(unknowns);
            Emails.AddRange(unknowns);
        }
Ejemplo n.º 2
0
        public void Process(Context context)
        {
            var users     = context.Server.Database.QueryUsers(queryByUsername);
            var usernames = users.Select(a => a.Username);

            Usernames.AddRange(usernames);

            // Don't really care about these but they're necessary to work properly
            var unknowns = usernames.Select(a => "Unknown");

            FirstNames.AddRange(unknowns);
            LastNames.AddRange(unknowns);
            Emails.AddRange(unknowns);
        }