2002-12-20 Lluis Sanchez Gual <lsg@ctv.es>
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Proxies / RemotingProxy.cs
1 //
2 // System.Runtime.Remoting.Proxies.RemotingProxy.cs
3 //
4 // Authors:
5 //   Dietmar Maurer (dietmar@ximian.com)
6 //   Lluis Sanchez Gual (lsg@ctv.es)
7 //
8 // (C) 2001 Ximian, Inc.  http://www.ximian.com
9 //
10
11 using System;
12 using System.Runtime.Remoting.Messaging;
13 using System.Runtime.Remoting.Channels;
14 using System.Runtime.CompilerServices;
15
16
17 namespace System.Runtime.Remoting.Proxies
18 {
19
20         public class RemotingProxy : RealProxy 
21         {
22                 IMessageSink _sink;
23
24                 internal RemotingProxy (Type type, Identity identity) : base (type, identity)
25                 {
26                         _sink = identity.ClientSink;
27                 }
28
29                 public override IMessage Invoke (IMessage request)
30                 {
31                         return _sink.SyncProcessMessage (request);
32                 }
33
34         }
35 }