| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider.cs
- //
- // Author: Rodrigo Moya ([email protected])
- //
- // 2002 (C) Copyright, Ximian, Inc.
- //
- using System.Collections;
- namespace System.Runtime.Remoting.Channels
- {
- public class SoapServerFormatterSinkProvider :
- IServerFormatterSinkProvider, IServerChannelSinkProvider
- {
- private IServerChannelSinkProvider _next;
- SoapCore _soapCore;
- public SoapServerFormatterSinkProvider ()
- {
- _soapCore = SoapCore.DefaultInstance;
- }
- public SoapServerFormatterSinkProvider (IDictionary properties,
- ICollection providerData)
- {
- _soapCore = new SoapCore (this, properties);
- }
- public IServerChannelSinkProvider Next
- {
- get { return _next; }
- set { _next = value; }
- }
- public IServerChannelSink CreateSink (IChannelReceiver channel)
- {
- IServerChannelSink chain = _next.CreateSink(channel);
- SoapServerFormatterSink sinkFormatter = new SoapServerFormatterSink(SoapServerFormatterSink.Protocol.Http, chain, channel);
- sinkFormatter.SoapCore = _soapCore;
-
- return sinkFormatter;
- }
- public void GetChannelData (IChannelDataStore channelData)
- {
- if(_next != null)
- _next.GetChannelData(channelData);
- }
- }
- }
|