+2009-05-22 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ChannelManagerBase.cs : fix wrong session channel detection.
+
2009-05-22 Atsushi Enomoto <atsushi@ximian.com>
* BinaryMessageEncoderFactory.cs, BinaryMessageEncoder.cs
internal MessageEncoder CreateEncoder<TChannel> (MessageEncodingBindingElement mbe)
{
var f = mbe.CreateMessageEncoderFactory ();
- if (this is IRequestSessionChannel ||
- this is IReplySessionChannel ||
- this is IInputSessionChannel ||
- this is IOutputSessionChannel ||
- this is IDuplexSessionChannel)
+ var t = typeof (TChannel);
+ if (t == typeof (IRequestSessionChannel) ||
+ t == typeof (IReplySessionChannel) ||
+ t == typeof (IInputSessionChannel) ||
+ t == typeof (IOutputSessionChannel) ||
+ t == typeof (IDuplexSessionChannel))
return f.CreateSessionEncoder ();
else
return f.Encoder;