Activities of "liangshiwei"

Hi,

Yes

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.

Showing 3081 to 3090 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.