summaryrefslogtreecommitdiff
path: root/lib/infrastructure/proxies/RemotingProxyFactory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/infrastructure/proxies/RemotingProxyFactory.cs')
-rw-r--r--lib/infrastructure/proxies/RemotingProxyFactory.cs88
1 files changed, 44 insertions, 44 deletions
diff --git a/lib/infrastructure/proxies/RemotingProxyFactory.cs b/lib/infrastructure/proxies/RemotingProxyFactory.cs
index 3932f1e..a0eaf17 100644
--- a/lib/infrastructure/proxies/RemotingProxyFactory.cs
+++ b/lib/infrastructure/proxies/RemotingProxyFactory.cs
@@ -1,44 +1,44 @@
-//using System.Collections.Generic;
-//using System.Runtime.Remoting.Messaging;
-//using System.Runtime.Remoting.Proxies;
-//using gorilla.utility;
-
-//namespace gorilla.infrastructure.proxies
-//{
- //public class RemotingProxyFactory<T> : RealProxy
- //{
- //readonly T target;
- //readonly IEnumerable<Interceptor> interceptors;
-
- //public RemotingProxyFactory(T target, IEnumerable<Interceptor> interceptors) : base(typeof (T))
- //{
- //this.target = target;
- //this.interceptors = interceptors;
- //}
-
- //public override IMessage Invoke(IMessage message)
- //{
- //if (message.is_an_implementation_of<IMethodCallMessage>())
- //{
- //var call = message.downcast_to<IMethodCallMessage>();
- //var invocation = new MethodCallInvocation<T>(interceptors, call, target);
- //invocation.proceed();
- //return return_value(invocation.return_value, invocation.arguments, call);
- //}
- //return null;
- //}
-
- //IMessage return_value(object return_value, object[] out_parameters, IMethodCallMessage call)
- //{
- //return new ReturnMessage(return_value,
- //out_parameters,
- //out_parameters == null ? 0 : out_parameters.Length,
- //call.LogicalCallContext, call);
- //}
-
- //public T create_proxy()
- //{
- //return GetTransparentProxy().downcast_to<T>();
- //}
- //}
-//}
+//using System.Collections.Generic;
+//using System.Runtime.Remoting.Messaging;
+//using System.Runtime.Remoting.Proxies;
+//using jive.utility;
+
+//namespace jive.infrastructure.proxies
+//{
+ //public class RemotingProxyFactory<T> : RealProxy
+ //{
+ //readonly T target;
+ //readonly IEnumerable<Interceptor> interceptors;
+
+ //public RemotingProxyFactory(T target, IEnumerable<Interceptor> interceptors) : base(typeof (T))
+ //{
+ //this.target = target;
+ //this.interceptors = interceptors;
+ //}
+
+ //public override IMessage Invoke(IMessage message)
+ //{
+ //if (message.is_an_implementation_of<IMethodCallMessage>())
+ //{
+ //var call = message.downcast_to<IMethodCallMessage>();
+ //var invocation = new MethodCallInvocation<T>(interceptors, call, target);
+ //invocation.proceed();
+ //return return_value(invocation.return_value, invocation.arguments, call);
+ //}
+ //return null;
+ //}
+
+ //IMessage return_value(object return_value, object[] out_parameters, IMethodCallMessage call)
+ //{
+ //return new ReturnMessage(return_value,
+ //out_parameters,
+ //out_parameters == null ? 0 : out_parameters.Length,
+ //call.LogicalCallContext, call);
+ //}
+
+ //public T create_proxy()
+ //{
+ //return GetTransparentProxy().downcast_to<T>();
+ //}
+ //}
+//}