SoapClientFormatterSinkProvider.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // created on 20/05/2003 at 12:33
  2. using System.Collections;
  3. using System.Runtime.Remoting.Messaging;
  4. namespace System.Runtime.Remoting.Channels {
  5. public class SoapClientFormatterSinkProvider: IClientFormatterSinkProvider,
  6. IClientChannelSinkProvider
  7. {
  8. private IClientChannelSinkProvider _nextClientChannelSinkProvider;
  9. private IDictionary _properties;
  10. private ICollection _providerData;
  11. public SoapClientFormatterSinkProvider() {
  12. }
  13. public SoapClientFormatterSinkProvider(IDictionary properties,
  14. ICollection providerData)
  15. {
  16. _properties = properties;
  17. _providerData = providerData;
  18. }
  19. public virtual IClientChannelSinkProvider Next {
  20. get { return _nextClientChannelSinkProvider;}
  21. set { _nextClientChannelSinkProvider = value;}
  22. }
  23. public virtual IClientChannelSink CreateSink( IChannelSender channel,
  24. string url,
  25. object remoteChannelData)
  26. {
  27. IClientChannelSink _nextSink = _nextClientChannelSinkProvider.CreateSink(channel, url, remoteChannelData);
  28. IClientChannelSink scfs = new SoapClientFormatterSink(_nextSink);
  29. return scfs;
  30. }
  31. }
  32. }