Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "aaron"

So this question can be closed?

On second thought, it may be more appropriate to overload LoginAsync and SaveLoginAttemptAsync.

LogInManager.cs

[UnitOfWork]
public virtual async Task<AbpLoginResult<Tenant, User>> LoginAsync(ClientInfo clientInfo, string userNameOrEmailAddress, string plainPassword, string tenancyName = null, bool shouldLockout = true)
{
    var result = await LoginAsyncInternal(userNameOrEmailAddress, plainPassword, tenancyName, shouldLockout);
    await SaveLoginAttemptAsync(clientInfo, result, tenancyName, userNameOrEmailAddress);
    return result;
}

protected virtual async Task SaveLoginAttemptAsync(ClientInfo clientInfo, AbpLoginResult<TTenant, TUser> loginResult, string tenancyName, string userNameOrEmailAddress)
{
    var innerClientInfo = clientInfo.InnerClientInfo;

    ...
}

ClientInfo.cs

public class ClientInfo
{
    public string InnerClientInfo { get; set; }
}

TokenAuthController.cs

private async Task<AbpLoginResult<Tenant, User>> GetLoginResultAsync(string usernameOrEmailAddress, string password, string tenancyName, string clientInfo)
{
    // var loginResult = await _logInManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);
    var outerClientInfo = new ClientInfo { InnerClientInfo = clientInfo };
    var loginResult = await _logInManager.LoginAsync(outerClientInfo, usernameOrEmailAddress, password, tenancyName);

    ...
}

Which version of ASP<span></span>.NET Zero are you on?

In TokenAuthController.cs, pass the custom data in a subclass of UserLoginInfo to _logInManager.LoginAsync. In LogInManager.cs, override LoginAsync to forward the custom data in a subclass of AbpLoginResult<Tenant, User> to SaveLoginAttemptAsync.

It should not be the same error. Please check and show the stack trace.

Does _estimateSubPortionRepository.GetAll().ToList() work?

That seems odd; there is similar code in several places in ASP<span></span>.NET Zero.

Try ToList().

  • Which line of code is EstimateSubPortionsAppService.cs:line 79?
  • As I suggested before, please evaluate totalCount before pagedAndFilteredEstimateSubPortions.
Showing 31 to 40 of 1543 entries