CORBA Channel, ObjRef serialisation support
[mono.git] / mcs / class / System.Runtime.Remoting / System.Runtime.Remoting.Channels.CORBA / CORBAServerFormatterSinkProvider.cs
1 //
2 // System.Runtime.Remoting.Channels.CORBA.CORBAServerFormatterSinkProvider.cs
3 //
4 // Author: Dietmar Maurer (dietmar@ximian.com)
5 //
6 // 2002 (C) Copyright, Ximian, Inc.
7 //
8
9 using System.Collections;
10
11 namespace System.Runtime.Remoting.Channels.CORBA
12 {
13         public class CORBAServerFormatterSinkProvider :
14                 IServerFormatterSinkProvider, IServerChannelSinkProvider
15         {
16                 IServerChannelSinkProvider next = null;
17
18                 public CORBAServerFormatterSinkProvider ()
19                 {
20                 }
21
22                 [MonoTODO]
23                 public CORBAServerFormatterSinkProvider (IDictionary properties,
24                                                          ICollection providerData)
25                 {
26                         throw new NotImplementedException ();
27                 }
28
29                 public IServerChannelSinkProvider Next
30                 {
31                         get {
32                                 return next;
33                         }
34
35                         set {
36                                 next = value;
37                         }
38                 }
39
40                 public IServerChannelSink CreateSink (IChannelReceiver channel)
41                 {
42                         IServerChannelSink next_sink = null;
43                         CORBAServerFormatterSink result;
44                         
45                         if (next != null)
46                                 next_sink = next.CreateSink (channel);
47                         
48                         result = new CORBAServerFormatterSink (next_sink);
49
50                         // set properties on result
51                         
52                         return result;
53                 }
54
55                 public void GetChannelData (IChannelDataStore channelData)
56                 {
57                         // no idea why we need this
58                 }
59         }
60 }