* ServerContextTerminatorSink.cs: now it forwards messages to the target identity,
[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                 MarshalByRefObject _target;
18
19                 public StackBuilderSink (MarshalByRefObject obj)
20                 {
21                         _target = obj;
22                 }
23
24                 public IMessage SyncProcessMessage (IMessage msg)
25                 {
26                         // Makes the real call to the object
27                         return RemotingServices.InternalExecuteMessage (_target, (IMethodCallMessage)msg);
28                 }
29
30                 [MonoTODO]
31                 public IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
32                 {
33                         throw new NotImplementedException ();
34                 }
35
36                 public IMessageSink NextSink 
37                 { 
38                         get { return null; }
39                 }
40         }
41 }