Skip to content

Commit 13120e7

Browse files
committed
修复更换TokenProvider类型后覆盖服务描述失效的问题
1 parent 13a9b30 commit 13120e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebApiClientCore.Extensions.OAuths/TokenProviderFactoryOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void Register<THttpApi, TTokenPrivder>(string alias) where TTokenPrivder
3434
else
3535
{
3636
serviceDescriptor.AddAlias(alias);
37-
this.httpApiServiceDescriptors.Add(httpApiType, serviceDescriptor);
37+
this.httpApiServiceDescriptors[httpApiType] = serviceDescriptor;
3838
}
3939
}
4040

0 commit comments

Comments
 (0)