public Task <IList <UserLoginInfo> > GetLoginsAsync(AbpUser user) { return(Task.Factory.StartNew <IList <UserLoginInfo> >( () => _userLoginRepository .GetAllList(ul => ul.UserId == user.Id) .Select(ul => new UserLoginInfo(ul.LoginProvider, ul.ProviderKey)) .ToList() )); }