mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* OperationInvokerHandler.cs : One way operation has no reply. * ReplyHandler.cs : ditto. svn path=/trunk/mcs/; revision=139321
32 lines
638 B
C#
32 lines
638 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 IsOneWay then no need to handle reply
|
|
if (mrc.ReplyMessage == null)
|
|
return false;
|
|
|
|
if (duplex != null)
|
|
mrc.Reply (duplex, true);
|
|
else
|
|
mrc.Reply (true);
|
|
return false;
|
|
}
|
|
}
|
|
}
|