Skip to content

Commit 5284d4e

Browse files
committed
BuildProxyType方法修饰符改为private
1 parent 352bcfd commit 5284d4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebApiClientCore/BuildInProxies/HttpApiEmitActivator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected override Func<IActionInterceptor, THttpApi> CreateFactory()
3434
var actionInvokers = this.GetActionInvokers();
3535
var proxyType = BuildProxyType(typeof(THttpApi), actionInvokers);
3636
var proxyTypeCtor = Lambda.CreateCtorFunc<IActionInterceptor, IActionInvoker[], THttpApi>(proxyType);
37-
return (interceptor) => proxyTypeCtor(interceptor, actionInvokers);
37+
return interceptor => proxyTypeCtor(interceptor, actionInvokers);
3838
}
3939

4040

@@ -46,7 +46,7 @@ protected override Func<IActionInterceptor, THttpApi> CreateFactory()
4646
/// <exception cref="NotSupportedException"></exception>
4747
/// <exception cref="ProxyTypeCreateException"></exception>
4848
/// <returns></returns>
49-
public static Type BuildProxyType(Type interfaceType, IActionInvoker[] actionInvokers)
49+
private static Type BuildProxyType(Type interfaceType, IActionInvoker[] actionInvokers)
5050
{
5151
// 接口的实现在动态程序集里,所以接口必须为public修饰才可以创建代理类并实现此接口
5252
if (interfaceType.IsVisible == false)

0 commit comments

Comments
 (0)