Ends in:
7 DAYS
17 HRS
4 MIN
4 SEC
Ends in:
7 D
17 H
4 M
4 S
Open Closed

Call setting from another module #151


User avatar
0
edelivery created

Hi all! I have some setting defined in module BackendService. How i can get all setting of module BackendService in module DDC.Core. I use SettingDefinitionManager.GetAll() but i don't see any setting of module BackendService Thanks


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

    Hi , Try move your settingProvider to .Application.Contracts project.

  • User Avatar
    0
    edelivery created

    @liangshiwei I tried move my settingProvider to .Application.Contracts project. but it still not show in module DDC.Core. Can you show me more details?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    I see your debug project is .IdentityServer project, Did you call the DDC.Core module in this project?

    If so, your need add BackendServiceApplicationContractsModule to this project module class dependencies, because SettingDefinitionManager get SettingDefinition from Dependency injection container.

  • User Avatar
    0
    edelivery created

    I'm working on microservice project, I have microservice A, microservice B, microservice C. I defined settings for all 3 microservices and now I'm creating a Setting UI to discover all settings from 3. For example, my microservice A is included all AbpTable, with B and C is not included AbpTable otherwise it is included business tables. When I defined all settings in each module, I need to discover it without adding Depends On each other How can I get that ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    currently can't to get the setting definition without dependency. But you can directly inject ISettingRepository in your service.

  • User Avatar
    0
    edelivery created

    thank you so much

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