Activities of "maliming"

hi

Can you share your project source code? I need to check it on my local. liming.ma@volosoft.com

hi

You should inherit the PermissionDataSeedContributor

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(YourPermissionDataSeedContributor), typeof(PermissionDataSeedContributor), typeof(IDataSeedContributor))]

public class YourPermissionDataSeedContributor : PermissionDataSeedContributor

hi

using System.Threading.Tasks;
using Amazon.S3;
using Volo.Abp.Caching;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Security.Encryption;

namespace Volo.Abp.BlobStoring.Aws;

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAmazonS3ClientFactory), typeof(DefaultAmazonS3ClientFactory))]
public class MyAmazonS3ClientFactory : DefaultAmazonS3ClientFactory
{
    public MyAmazonS3ClientFactory(
        IDistributedCache<AwsTemporaryCredentialsCacheItem> cache,
        IStringEncryptionService stringEncryptionService)
        : base(cache, stringEncryptionService)
    {
    }

    public override Task<AmazonS3Client> GetAmazonS3Client(AwsBlobProviderConfiguration configuration)
    {
        // TODO: Add your custom logic here
        return base.GetAmazonS3Client(configuration);
    }
}

hi

Please inject ICurrentUser to check if there is Id value.

hi

Abp uses an endpoint to change the current language.

https://localhost:44348/Abp/Languages/Switch?culture=vi&uiCulture=vi&returnUrl=%2F

Thanks rohit.jadhav

: )

hi

You can inject ILanguageProvider service to get all languages.

https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/ILanguageProvider.cs

hi

You can remove the PermissionDataSeedContributor from AbpDataSeedOptions

public override void ConfigureServices(ServiceConfigurationContext context)
{
    PostConfigure<AbpDataSeedOptions>(options =>
    {
        options.Contributors.RemoveAll(x => x == typeof(PermissionDataSeedContributor));
    });
}

public class YourPermissionDataSeedContributor : IDataSeedContributor, ITransientDependency

hi

You can inject IHtmlLocalizer, I tested, and it works.

Showing 5801 to 5810 of 11542 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.