You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whilst the above works, my understanding is that each tenant will have it's own HttpClient instance injected and considering each tenant will call the same API, it might end up not using resources optimally (thinking about snat ports here).
The text was updated successfully, but these errors were encountered:
Orchard Core version
1.8.x
To Reproduce
When adding a http client binding, the ConfigureHttpClient is not firing.
services.AddHttpClient<IService, Service>() .**ConfigureHttpClient**(c => c.BaseAddress = new Uri("test-uri"));
This seems to work fine if the binding is added in ConfigureServices.
builder.Services .AddOrchardCore() .WithTenants() .ConfigureServices((m, serviceProvider) => { services.AddHttpClient<IService, Service>() .**ConfigureHttpClient**(c => c.BaseAddress = new Uri("test-uri")); });
Whilst the above works, my understanding is that each tenant will have it's own HttpClient instance injected and considering each tenant will call the same API, it might end up not using resources optimally (thinking about snat ports here).
The text was updated successfully, but these errors were encountered: