private IProxyRequest CreateRequest(Castle.DynamicProxy.IInvocation castleInvocation)
        {
            var requestFactory = Context.Kernel.Components.Get <IProxyRequestFactory>();

            return(requestFactory.Create(
                       Context,
                       castleInvocation.Proxy,
                       Instance,
                       castleInvocation.GetConcreteMethod(),
                       castleInvocation.Arguments,
                       castleInvocation.GenericArguments));
        }
Beispiel #2
0
 /// <summary>
 /// 具体方法
 /// </summary>
 /// <returns></returns>
 public MethodInfo GetConcreteMethod()
 {
     return(invocation.GetConcreteMethod());
 }
 /// <inheritdoc />
 public MethodInfo GetConcreteMethod() => Adapted.GetConcreteMethod();