Added files for Lluis.
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Messaging / StackBuilderSink.cs
1 //
2 // System.Runtime.Remoting.StackBuilderSink.cs
3 //
4 // Author: Lluis Sanchez Gual (lsg@ctv.es)
5 //
6 // (C) 2002, Lluis Sanchez Gual
7 //
8
9 using System;
10
11 namespace System.Runtime.Remoting.Messaging
12 {
13         // Sink that calls the real method of the object
14
15         public class StackBuilderSink: IMessageSink
16         {
17                 public IMessage SyncProcessMessage (IMessage msg)
18                 {
19                         // Makes the real call to the object
20
21                         MarshalByRefObject obj = RemotingServices.GetServerForUri (((IMethodMessage)msg).Uri);
22                         return RemotingServices.InternalExecuteMessage (obj, (IMethodCallMessage)msg);
23                 }
24
25                 [MonoTODO]
26                 public IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
27                 {
28                         throw new NotImplementedException ();
29                 }
30
31                 public IMessageSink NextSink 
32                 { 
33                         get { return null; }
34                 }
35         }
36 }