TcpClientTransportSinkProvider.cs 801 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSinkProvider.cs
  3. //
  4. // Author: Dietmar Maurer ([email protected])
  5. // Lluis Sanchez ([email protected])
  6. //
  7. // 2002 (C) Copyright, Ximian, Inc.
  8. //
  9. using System;
  10. using System.Runtime.Remoting.Channels;
  11. namespace System.Runtime.Remoting.Channels.Tcp
  12. {
  13. public class TcpClientTransportSinkProvider : IClientChannelSinkProvider
  14. {
  15. public TcpClientTransportSinkProvider ()
  16. {
  17. // what should we do here ?
  18. }
  19. public IClientChannelSinkProvider Next
  20. {
  21. get
  22. {
  23. return null;
  24. }
  25. set
  26. {
  27. // ignore, we are always the last in the chain
  28. }
  29. }
  30. public IClientChannelSink CreateSink (IChannelSender channel, string url,
  31. object remoteChannelData)
  32. {
  33. return new TcpClientTransportSink (url);
  34. }
  35. }
  36. }