} // GetChannelData /// <include file='doc\SoapFormatterSinks.uex' path='docs/doc[@for="SoapServerFormatterSinkProvider.CreateSink"]/*' /> public IServerChannelSink CreateSink(IChannelReceiver channel) { if (null == channel) { throw new ArgumentNullException("channel"); } IServerChannelSink nextSink = null; if (_next != null) { nextSink = _next.CreateSink(channel); } SoapServerFormatterSink.Protocol protocol = SoapServerFormatterSink.Protocol.Other; // see if this is an http channel String uri = channel.GetUrlsForUri("")[0]; if (String.Compare("http", 0, uri, 0, 4, true, CultureInfo.InvariantCulture) == 0) { protocol = SoapServerFormatterSink.Protocol.Http; } SoapServerFormatterSink sink = new SoapServerFormatterSink(protocol, nextSink, channel); sink.IncludeVersioning = _includeVersioning; sink.StrictBinding = _strictBinding; return(sink); }
public SoapServerFormatterSink (SoapServerFormatterSink.Protocol protocol, IServerChannelSink nextSink, IChannelReceiver receiver) { this.next_sink = nextSink; _receiver = receiver; }
public IServerChannelSink CreateSink(IChannelReceiver channel) { if (null == channel) { throw new ArgumentNullException("channel"); } IServerChannelSink nextSink = null; if (_next != null) { nextSink = _next.CreateSink(channel); } SoapServerFormatterSink.Protocol protocol = SoapServerFormatterSink.Protocol.Other; // see if this is an http channel String uri = channel.GetUrlsForUri("")[0]; if (String.Compare("http", 0, uri, 0, 4, StringComparison.OrdinalIgnoreCase) == 0) { protocol = SoapServerFormatterSink.Protocol.Http; } SoapServerFormatterSink sink = new SoapServerFormatterSink(protocol, nextSink, channel); sink.IncludeVersioning = _includeVersioning; sink.StrictBinding = _strictBinding; sink.TypeFilterLevel = _formatterSecurityLevel; return(sink); }
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 IServerChannelSink CreateSink(IChannelReceiver channel) { IServerChannelSink chain = _next.CreateSink(channel); SoapServerFormatterSink sinkFormatter = new SoapServerFormatterSink(SoapServerFormatterSink.Protocol.Http, chain, channel); sinkFormatter.SoapCore = _soapCore; return(sinkFormatter); }
public IServerChannelSink CreateSink(IChannelReceiver channel) { if(null == channel) { throw new ArgumentNullException("channel"); } IServerChannelSink nextSink = null; if (_next != null) nextSink = _next.CreateSink(channel); SoapServerFormatterSink.Protocol protocol = SoapServerFormatterSink.Protocol.Other; // see if this is an http channel String uri = channel.GetUrlsForUri("")[0]; if (String.Compare("http", 0, uri, 0, 4, StringComparison.OrdinalIgnoreCase) == 0) protocol = SoapServerFormatterSink.Protocol.Http; SoapServerFormatterSink sink = new SoapServerFormatterSink(protocol, nextSink, channel); sink.IncludeVersioning = _includeVersioning; sink.StrictBinding = _strictBinding; sink.TypeFilterLevel = _formatterSecurityLevel; return sink; }
} // GetChannelData /// <include file='doc\SoapFormatterSinks.uex' path='docs/doc[@for="SoapServerFormatterSinkProvider.CreateSink"]/*' /> public IServerChannelSink CreateSink(IChannelReceiver channel) { if(null == channel) { throw new ArgumentNullException("channel"); } IServerChannelSink nextSink = null; if (_next != null) nextSink = _next.CreateSink(channel); SoapServerFormatterSink.Protocol protocol = SoapServerFormatterSink.Protocol.Other; // see if this is an http channel String uri = channel.GetUrlsForUri("")[0]; if (String.Compare("http", 0, uri, 0, 4, true, CultureInfo.InvariantCulture) == 0) protocol = SoapServerFormatterSink.Protocol.Http; SoapServerFormatterSink sink = new SoapServerFormatterSink(protocol, nextSink, channel); sink.IncludeVersioning = _includeVersioning; sink.StrictBinding = _strictBinding; return sink; }