diff options
Diffstat (limited to 'lib/infrastructure/proxies/MethodCallInvocation.cs')
| -rw-r--r-- | lib/infrastructure/proxies/MethodCallInvocation.cs | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/lib/infrastructure/proxies/MethodCallInvocation.cs b/lib/infrastructure/proxies/MethodCallInvocation.cs index a9332bf..0759c11 100644 --- a/lib/infrastructure/proxies/MethodCallInvocation.cs +++ b/lib/infrastructure/proxies/MethodCallInvocation.cs @@ -1,47 +1,47 @@ -//using System.Collections.Generic;
-//using System.Reflection;
-//using System.Runtime.Remoting.Messaging;
-//using gorilla.utility;
-
-//namespace gorilla.infrastructure.proxies
-//{
- //public class MethodCallInvocation<T> : Invocation
- //{
- //readonly IMethodCallMessage call;
- //readonly T target;
- //readonly Stack<Interceptor> interceptors;
-
- //public MethodCallInvocation(IEnumerable<Interceptor> interceptors, IMethodCallMessage call, T target)
- //{
- //this.call = call;
- //this.target = target;
- //this.interceptors = new Stack<Interceptor>(interceptors);
- //arguments = call.Properties["__Args"].downcast_to<object[]>();
- //method = call.MethodBase.downcast_to<MethodInfo>();
- //}
-
- //public object[] arguments { get; set; }
-
- //public MethodInfo method { get; set; }
-
- //public object return_value { get; set; }
-
- //public void proceed()
- //{
- //if (interceptors.Count > 0)
- //{
- //interceptors.Pop().intercept(this);
- //return;
- //}
-
- //try
- //{
- //return_value = call.MethodBase.Invoke(target, arguments);
- //}
- //catch (TargetInvocationException e)
- //{
- //throw e.InnerException.preserve_stack_trace();
- //}
- //}
- //}
-//}
+//using System.Collections.Generic; +//using System.Reflection; +//using System.Runtime.Remoting.Messaging; +//using jive.utility; + +//namespace jive.infrastructure.proxies +//{ + //public class MethodCallInvocation<T> : Invocation + //{ + //readonly IMethodCallMessage call; + //readonly T target; + //readonly Stack<Interceptor> interceptors; + + //public MethodCallInvocation(IEnumerable<Interceptor> interceptors, IMethodCallMessage call, T target) + //{ + //this.call = call; + //this.target = target; + //this.interceptors = new Stack<Interceptor>(interceptors); + //arguments = call.Properties["__Args"].downcast_to<object[]>(); + //method = call.MethodBase.downcast_to<MethodInfo>(); + //} + + //public object[] arguments { get; set; } + + //public MethodInfo method { get; set; } + + //public object return_value { get; set; } + + //public void proceed() + //{ + //if (interceptors.Count > 0) + //{ + //interceptors.Pop().intercept(this); + //return; + //} + + //try + //{ + //return_value = call.MethodBase.Invoke(target, arguments); + //} + //catch (TargetInvocationException e) + //{ + //throw e.InnerException.preserve_stack_trace(); + //} + //} + //} +//} |
