@ -127,12 +127,12 @@ namespace Volo.Abp.Http.Client.DynamicProxying
}
private async Task < string > MakeRequestAsync ( IAbpMethodInvocation invocation )
{
using ( var client = HttpClientFactory . Create ( ) )
{
var clientConfig = ClientOptions . HttpClientProxies . GetOrDefault ( typeof ( TService ) ) ? ? throw new AbpException ( $"Could not get DynamicHttpClientProxyConfig for {typeof(TService).FullName}." ) ;
var remoteServiceConfig = RemoteServiceOptions . RemoteServices . GetConfigurationOrDefault ( clientConfig . RemoteServiceName ) ;
var client = HttpClientFactory . Create ( clientConfig . RemoteServiceName ) ;
var action = await ApiDescriptionFinder . FindActionAsync ( remoteServiceConfig . BaseUrl , typeof ( TService ) , invocation . Method ) ;
var apiVersion = GetApiVersionInfo ( action ) ;
var url = remoteServiceConfig . BaseUrl + UrlBuilder . GenerateUrlWithParameters ( action , invocation . ArgumentsDictionary , apiVersion ) ;
@ -162,7 +162,7 @@ namespace Volo.Abp.Http.Client.DynamicProxying
return await response . Content . ReadAsStringAsync ( ) ;
}
}
private ApiVersionInfo GetApiVersionInfo ( ActionApiDescriptionModel action )
{