+2009-05-18 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ErrorProcessingHandler.cs, InputOrReplyRequestProcessor.cs :
+ they also premise request-reply channel and broke duplex channels.
+
2009-05-13 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : open channel before using it.
{\r
internal class ErrorProcessingHandler : BaseRequestProcessorHandler\r
{\r
+ public ErrorProcessingHandler (IChannel channel)\r
+ {\r
+ duplex = channel as IDuplexChannel;\r
+ }\r
+\r
+ IDuplexChannel duplex;\r
+\r
protected override bool ProcessRequest (MessageProcessingContext mrc)\r
{\r
Exception ex = mrc.ProcessingException;\r
if (!fc.TryCreateFaultMessage (ex, out res))\r
throw ex;\r
mrc.ReplyMessage = res;\r
- mrc.Reply (true);\r
+ if (duplex != null)\r
+ mrc.Reply (duplex, true);\r
+ else\r
+ mrc.Reply (true);\r
return false;\r
} \r
}\r