Activities of "ya-dev"

I know feature system very well and it is irrelevant. I do not want my parent module depend all of optional/plugin modules. Every plugin module has implementations of some interfaces, for example. And I must manage DI manually for this scenario. At last I assume that Abp does not support dynamic dependency tree modification and we must add plugins at startup module.

This feature would be nice, Abp team may consider adding it.

Yes you are right but I've given PreConfigureServices or ConfigureServices methods just for example. I've tried to explain what I need. I only need to inject a module dynamically to the module tree. Maybe like this:

public class ModuleA : AbpModule
{
    public override ICollection<Type> GetDynamicDependencies() 
    {
        List<Type> dependencies = new List<Type>();
        
        if (condition)
        {
            dependencies.Add(typeof(ModuleX));
        }
        else
        {
            dependencies.Add(typeof(ModuleY));
        }
        
        return result;
    }
}

And basically "GetDynamicDependencies" method can be called by the framework if possible while populating module dependency tree.

Plugin mechanism quite useful but documents say we should add plugin from startup module but I do not want to break up the dependency tree. In other words, I want to add a module conditionally but working same as DependsOnAttribute.If I can add plugin module from another module that will also work for me.

Hi @maliming,

Thanks for your assitance. It worked.

do you want to change this translation?
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/ExceptionHandling/Localization/tr.json#L15

Yes I do.

Answer

Your entity interface should be defined as follows:

  export interface Entity<TKey> {
    id: TKey;
    ...
  }

Hi,

I think the problem is clear and easy to reproduce. Also I've linked a related problem. I cannot share the source code. It's a corporate project and contains sensitive information.

Thanks.

It seems to be working. I've missed it because of an intellisense issue. Thanks for your help.

That's not working while creating a tenant. Have you ever tested it? Can you provide a working example for IdentityUser entity?

Thanks.

Hi,

I've achieved this by overriding MinioBlobNameCalculator, MinioBlobProvider and BlobContainerFactory. It should not be that hard. I think abp should support this functionality with an easy way.

Also, I think GetContainerName function of MinioBlobProvider has a bug. Configuration does not allow empty or null bucket names but that function checks for that and never uses true condition of comparison.

// always false because empty or null values are not allowed, application throws exception while starting up return configuration.BucketName.IsNullOrWhiteSpace() ? args.ContainerName : configuration.BucketName;

Showing 11 to 20 of 32 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.8.0-preview. Updated on October 21, 2026, 11:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.