| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider.cs
- //
- // Author: Rodrigo Moya ([email protected])
- //
- // 2002 (C) Copyright, Ximian, Inc.
- //
- using System.Collections;
- namespace System.Runtime.Remoting.Channels
- {
- public class BinaryServerFormatterSinkProvider :
- IServerFormatterSinkProvider, IServerChannelSinkProvider
- {
- IServerChannelSinkProvider next = null;
- BinaryCore _binaryCore;
- public BinaryServerFormatterSinkProvider ()
- {
- _binaryCore = BinaryCore.DefaultInstance;
- }
- public BinaryServerFormatterSinkProvider (IDictionary properties,
- ICollection providerData)
- {
- _binaryCore = new BinaryCore (this, properties);
- }
- public IServerChannelSinkProvider Next
- {
- get {
- return next;
- }
- set {
- next = value;
- }
- }
- public IServerChannelSink CreateSink (IChannelReceiver channel)
- {
- IServerChannelSink next_sink = null;
- BinaryServerFormatterSink result;
-
- if (next != null)
- next_sink = next.CreateSink (channel);
-
- result = new BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol.Other,
- next_sink, channel);
- result.BinaryCore = _binaryCore;
- return result;
- }
- [MonoTODO]
- public void GetChannelData (IChannelDataStore channelData)
- {
- // no idea why we need this
- }
- }
- }
|