Ends in:
7 DAYS
20 HRS
58 MIN
20 SEC
Ends in:
7 D
20 H
58 M
20 S
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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06