Open Closed

Load module based on condition #6973


User avatar
0
hothsv created
  • ABP Framework version: v8.0.4
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: create a module A and Module B and try and call them conditionally

I want to know if there is a way to conditionally load two modules based on a condition. An example is that when doing development I want to load the module using rabbitmq and when in azure load azure service bus. The issue that I have is that when I load typeof(A) and load typeof(b) it try to load both and I only want one.

I do not want to use the feature system for this as it will not help me at all.

Any suggestions?


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can try this

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00