Activities of "liangshiwei"

Hi,

You can also add the middleware to the AuthServer project.

Hi,

Could you please provide a simple project to reproduce the problem? I will check it. my email is shiwei.liang@volosoft.com

Can you provide the error logs?

Answer

Hi,

Can you create an issue on the ABPfrmework GitHub repo so we can evaluate it? thanks.

Hi,

The ICurrentTenant interface is a low-level API and a lot of services depend on it.

This is why there are circular dependencies. You should create a new service. for example:

public interface ICurrentTenantInfo
{
    Task<Dictionary<string, object>> GetExtraProperties();
}

public class CurrentTenantInfo : ICurrentTenantInfo, ITransientDependency
{
    private readonly ICurrentTenant _currentTenant;
    private readonly ITenantRepository _tenantRepository;

    public CurrentTenantInfo(ICurrentTenant currentTenant, ITenantRepository tenantRepository)
    {
        _currentTenant = currentTenant;
        _tenantRepository = tenantRepository;
    }

    public async Task<Dictionary<string, object>> GetExtraProperties()
    {
        if(!_currentTenant.IsAvailable) 
        {    
            return new Dictionary<string, object>();
        }
       
        var tenant = await _tenantRepository.GetAsync(_currentTenant.GetId());
        //implement your logic
        //tenant.ExtraProperty ...
        return new Dictionary<string, object>();
    }
}

:)

i can not override the method so i can pass extra parameters with the event. How can i solve the problem? should i modify the PaymentRequestAppService instead?

Sorry, try:

public class MyStripePaymentGateway : IPaymentGateway, ITransientDependency
{
   ...
}

Configure<PaymentOptions>(options =>
{
    options.Gateways[StripeConsts.GatewayName] = 
            new PaymentGatewayConfiguration(
                StripeConsts.GatewayName,
                new FixedLocalizableString("Stripe"),
                isSubscriptionSupported: true,
                typeof(MyStripePaymentGateway)
            );
});

Hi,

i can not override the method so i can pass extra parameters with the event. How can i solve the problem? should i modify the PaymentRequestAppService instead?

You can replace the StripePaymentGateway service:

[ExposeServices(typeof(StripePaymentGateway))]
public class MyStripePaymentGateway : StripePaymentGateway

for the next version, is it possible to change private protected methods like "HandleCustomerSubscriptionUpdatedAsync" and "HandleCustomerSubscriptionDeletedAsync" to protected only so it could be overridden.

Okay, we will.

Hi,

We have an example: https://github.com/abpframework/abp-samples/tree/master/ConcurrentLogin https://github.com/abpframework/abp-samples/blob/master/ConcurrentLogin/src/ConcurrentLogin.Web/ConcurrentLoginWebModule.cs#L264

It's MVCUI but the principle is the same. use middleware to check the current user and log out.

Hi,

What version of the lepton x source code are you using?

You should download the version 2.2.x, because your abp version is 7.2.2 abp get-source Volo.Abp.LeptonXTheme.Pro -v 2.2.2

Showing 3081 to 3090 of 6692 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20