Browse Source
Merge branch 'Api-Versioning' of github.com:abpframework/abp into Api-Versioning
pull/11551/head
maliming
4 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
1 changed files with
3 additions and
1 deletions
-
framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/ClientProxying/ClientProxyBase.cs
|
|
|
@ -63,12 +63,14 @@ public class ClientProxyBase<TService> : ITransientDependency |
|
|
|
{ |
|
|
|
throw new AbpException($"The API description of the {typeof(TService).FullName}.{methodName} method was not found!"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return new ClientProxyRequestContext( |
|
|
|
action, |
|
|
|
action.Parameters |
|
|
|
.GroupBy(x => x.NameOnMethod) |
|
|
|
//TODO: make names configurable
|
|
|
|
.Where(x=> x.Key != "api-version" && x.Key !="apiVersion") |
|
|
|
.Where(x => action.SupportedVersions.Any() && x.Key != "api-version" && x.Key !="apiVersion") |
|
|
|
.Select((x, i) => new KeyValuePair<string, object>(x.Key, arguments.Values[i].Value)) |
|
|
|
.ToDictionary(x => x.Key, x => x.Value), |
|
|
|
typeof(TService)); |
|
|
|
|