BinaryServerFormatterSinkProvider.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider.cs
  3. //
  4. // Author: Rodrigo Moya ([email protected])
  5. //
  6. // 2002 (C) Copyright, Ximian, Inc.
  7. //
  8. using System.Collections;
  9. namespace System.Runtime.Remoting.Channels
  10. {
  11. public class BinaryServerFormatterSinkProvider :
  12. IServerFormatterSinkProvider, IServerChannelSinkProvider
  13. {
  14. IServerChannelSinkProvider next = null;
  15. public BinaryServerFormatterSinkProvider ()
  16. {
  17. }
  18. [MonoTODO]
  19. public BinaryServerFormatterSinkProvider (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. BinaryServerFormatterSink result;
  37. if (next != null)
  38. next_sink = next.CreateSink (channel);
  39. result = new BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol.Other,
  40. next_sink, channel);
  41. // set properties on result
  42. return result;
  43. }
  44. public void GetChannelData (IChannelDataStore channelData)
  45. {
  46. // no idea why we need this
  47. }
  48. }
  49. }