SimpleServerFormatterSinkProvider.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // System.Runtime.Remoting.Channels.Simple.SimpleServerFormatterSinkProvider.cs
  3. //
  4. // Author: Dietmar Maurer ([email protected])
  5. //
  6. // 2002 (C) Copyright, Ximian, Inc.
  7. //
  8. using System.Collections;
  9. namespace System.Runtime.Remoting.Channels.Simple
  10. {
  11. public class SimpleServerFormatterSinkProvider :
  12. IServerFormatterSinkProvider, IServerChannelSinkProvider
  13. {
  14. IServerChannelSinkProvider next = null;
  15. public SimpleServerFormatterSinkProvider ()
  16. {
  17. }
  18. [MonoTODO]
  19. public SimpleServerFormatterSinkProvider (IDictionary properties,
  20. ICollection providerData)
  21. {
  22. throw new NotImplementedException ();
  23. }
  24. public IServerChannelSinkProvider Next
  25. {
  26. get {
  27. return next;
  28. }
  29. set {
  30. next = value;
  31. }
  32. }
  33. public IServerChannelSink CreateSink (IChannelReceiver channel)
  34. {
  35. IServerChannelSink next_sink = null;
  36. SimpleServerFormatterSink result;
  37. if (next != null)
  38. next_sink = next.CreateSink (channel);
  39. result = new SimpleServerFormatterSink (next_sink);
  40. // set properties on result
  41. return result;
  42. }
  43. public void GetChannelData (IChannelDataStore channelData)
  44. {
  45. // no idea why we need this
  46. }
  47. }
  48. }