示例#1
0
        public Task RegisterAsync(IUser user)
        {
            if (user.Id == Context.User.Id)
            {
                return(UserManagement.RegisterAsync(Context, Context.Server, Context.User, Context.User.Username));
            }

            throw new Exception("You cannot register by tagging another user");
        }
示例#2
0
 public Task RegisterAsync([Remainder] string name)
 {
     return(UserManagement.RegisterAsync(Context, Context.Server, Context.User, name));
 }
示例#3
0
 public Task RegisterAsync()
 {
     return(UserManagement.RegisterAsync(Context, Context.Server, Context.User, Context.User.Username));
 }