Open Closed

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


User avatar
0
uyarbtrlp created

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 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team 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 March 25, 2024, 15:11