Files
mono/mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/ReplyHandler.cs
T
Atsushi Eno ec6df7fbdb 2009-05-13 Atsushi Enomoto <[email protected]>
* ReplyHandler.cs, InputOrReplyRequestProcessor.cs,
	  MessageProcessingContext.cs : reply processing is also needed by
	  non-request channels (i.e. duplex). Current code basis lacked
	  such possibility. Quick fix by adding duplex support in
	  ReplyHandler so far.


svn path=/trunk/mcs/; revision=134046
2009-05-13 10:30:23 +00:00

28 lines
566 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel.Channels;
using System.ServiceModel;
namespace System.ServiceModel.Dispatcher
{
internal class ReplyHandler : BaseRequestProcessorHandler
{
IDuplexChannel duplex;
public ReplyHandler (IChannel channel)
{
duplex = channel as IDuplexChannel;
}
protected override bool ProcessRequest (MessageProcessingContext mrc)
{
if (duplex != null)
mrc.Reply (duplex, true);
else
mrc.Reply (true);
return false;
}
}
}