2 // System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider.cs
4 // Author: Rodrigo Moya (rodrigo@ximian.com)
6 // 2002 (C) Copyright, Ximian, Inc.
9 using System.Collections;
11 namespace System.Runtime.Remoting.Channels
13 public class BinaryClientFormatterSinkProvider :
14 IClientFormatterSinkProvider, IClientChannelSinkProvider
16 IClientChannelSinkProvider next = null;
17 BinaryCore _binaryCore;
19 public BinaryClientFormatterSinkProvider ()
21 _binaryCore = BinaryCore.DefaultInstance;
24 public BinaryClientFormatterSinkProvider (IDictionary properties,
25 ICollection providerData)
27 _binaryCore = new BinaryCore (properties);
30 public IClientChannelSinkProvider Next
41 public IClientChannelSink CreateSink (IChannelSender channel,
43 object remoteChannelData)
45 IClientChannelSink next_sink = null;
46 BinaryClientFormatterSink result;
49 next_sink = next.CreateSink (channel, url, remoteChannelData);
51 result = new BinaryClientFormatterSink (next_sink);
52 result.BinaryCore = _binaryCore;