BinaryClientFormatterSinkProvider.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider.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 BinaryClientFormatterSinkProvider :
  12. IClientFormatterSinkProvider, IClientChannelSinkProvider
  13. {
  14. IClientChannelSinkProvider next = null;
  15. // this is not used at the moment ??
  16. IDictionary properties;
  17. public BinaryClientFormatterSinkProvider ()
  18. {
  19. properties = new Hashtable ();
  20. }
  21. public BinaryClientFormatterSinkProvider (IDictionary properties,
  22. ICollection providerData)
  23. {
  24. this.properties = properties;
  25. // fixme: what shall we do with providerData?
  26. }
  27. public IClientChannelSinkProvider Next
  28. {
  29. get {
  30. return next;
  31. }
  32. set {
  33. next = value;
  34. }
  35. }
  36. public IClientChannelSink CreateSink (IChannelSender channel,
  37. string url,
  38. object remoteChannelData)
  39. {
  40. IClientChannelSink next_sink = null;
  41. if (next != null)
  42. next_sink = next.CreateSink (channel, url, remoteChannelData);
  43. return new BinaryClientFormatterSink (next_sink);
  44. }
  45. }
  46. }