打开 关闭

Cannot change AbpRemoteServiceOptions value while using the dynamic c# API clients #4247


User avatar
0
uyarbtrlp 创建

Hello,

I want to override AbpRemoteServiceOptions.BaseUrl while using the dynamic c# API clients on console application, but it still retrieves the value which is defined on the configuration. I've followed the issue (https://support.abp.io/QA/Questions/3224/How-we-can-extend-Dynamic-API-Client-Proxy-to-allow-changing-RemoteService-base-url-dynamically) and created an options manager.

I see that it still reads the value on the configuration.

How to change it dynamically?

  • ABP Framework version: v5.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 答案
  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    hi

    There is a scope service that you can try to override it

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.RemoteServices/Volo/Abp/Http/Client/RemoteServiceConfigurationProvider.cs#L7

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11