Starts in:
1 DAY
19 HRS
53 MIN
56 SEC
Starts in:
1 D
19 H
53 M
56 S
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 v9.1.0-preview. Updated on November 20, 2024, 13:06