06eeb0dbae6d88488845243605797768668cf9e4
[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 //
7 // (C) 2001 Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System;
11 using System.Runtime.Remoting.Messaging;
12 using System.Runtime.Remoting.Channels;
13 using System.Runtime.CompilerServices;
14
15
16 namespace System.Runtime.Remoting.Proxies
17 {
18
19         public class RemotingProxy : RealProxy {
20
21                 IMessageSink sink;
22                 
23                 
24                 public RemotingProxy (Type type, IMessageSink sink) : base (type)
25                 {
26                         this.sink = sink;
27                 }
28
29                 public override IMessage Invoke (IMessage request)
30                 {
31                         return sink.SyncProcessMessage (request);
32                 }
33
34         }
35 }