BinaryServerFormatterSinkProvider.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. BinaryCore _binaryCore;
  16. public BinaryServerFormatterSinkProvider ()
  17. {
  18. _binaryCore = BinaryCore.DefaultInstance;
  19. }
  20. public BinaryServerFormatterSinkProvider (IDictionary properties,
  21. ICollection providerData)
  22. {
  23. _binaryCore = new BinaryCore (this, properties);
  24. }
  25. public IServerChannelSinkProvider Next
  26. {
  27. get {
  28. return next;
  29. }
  30. set {
  31. next = value;
  32. }
  33. }
  34. public IServerChannelSink CreateSink (IChannelReceiver channel)
  35. {
  36. IServerChannelSink next_sink = null;
  37. BinaryServerFormatterSink result;
  38. if (next != null)
  39. next_sink = next.CreateSink (channel);
  40. result = new BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol.Other,
  41. next_sink, channel);
  42. result.BinaryCore = _binaryCore;
  43. return result;
  44. }
  45. [MonoTODO]
  46. public void GetChannelData (IChannelDataStore channelData)
  47. {
  48. // no idea why we need this
  49. }
  50. }
  51. }