Activities of "maliming"

// Arrange var sltnManager = new SltnManager(_sltnRepository);

Why not get service through DI container? eg: GetRequiredService<SltnManager>()

Answer

btw if you have the min version(plugins.bundle.min.js) of

You can use it directly.

hi

You can try to switch to Host side in the DynamicResourceLocalizer subclass.


using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Caching;
using Volo.Abp.DependencyInjection;
using Volo.Abp.LanguageManagement;
using Volo.Abp.Localization;
using Volo.Abp.MultiTenancy;

namespace MyCompanyName.MyProjectName.Web
{
    [Dependency(ReplaceServices = true)]
    public class MyDynamicResourceLocalizer : DynamicResourceLocalizer
    {
        public MyDynamicResourceLocalizer(
            IServiceScopeFactory serviceScopeFactory,
            IDistributedCache<LanguageTextCacheItem> cache)
            : base(serviceScopeFactory, cache)
        {

        }

        protected override LanguageTextCacheItem CreateCacheItem(LocalizationResource resource, string cultureName)
        {
            var cacheItem = new LanguageTextCacheItem();

            using (var scope = ServiceScopeFactory.CreateScope())
            {
                var currentTenant = scope.ServiceProvider.GetRequiredService<ICurrentTenant>();
                using (currentTenant.Change(null))
                {
                    var texts = scope.ServiceProvider
                        .GetRequiredService<ILanguageTextRepository>()
                        .GetList(resource.ResourceName, cultureName);

                    foreach (var text in texts)
                    {
                        cacheItem.Dictionary[text.Name] = text.Value;
                    }
                }
            }

            return cacheItem;
        }
    }
}

Answer

hi

Can you share the js files? liming.ma@volosoft.com

8a) Open Solution & from Services-> AdministrationService -> Right Click & added "OrderService.Application.Contracts.dll" by adding Project Reference (right click)

Can you try to update the csporj to use ProjectReference instead add dll file?

hi Ravisha

V5.0 will be available in November. When we finish developing this feature, I will provide you with the code as soon as possible, you don't need to wait until November.

Answer
  • ABP Framework version: v4.4.0-rc.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I added source code for Lepton Theme, it results in set of errors in my .Net Core solution.

If I download the source code separately and add missing project manually, the ABP Suite stops working - when I navigate to "Modules" page for this project, it gets stuck on loading screen.

hi dkaczor

We will fix this in 4.4 final. It plan released on 1 August.

hi commitdeveloper1

How to reproduce your problem? Can you share the steps?

hi @BernardoTeixeira

Can you explain your use case?

hi lan.dang Please create a new question.

Showing 7771 to 7780 of 8747 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09