public object AfterReceiveRequest(ref System.ServiceModel.Channels.Message request, System.ServiceModel.IClientChannel channel, System.ServiceModel.InstanceContext instanceContext) { throw new FaultException("this is inspect error!"); }
public void BeforeSendReply(ref System.ServiceModel.Channels.Message reply, object correlationState) { FaultException fault = new FaultException("replace error message"); reply = Message.CreateMessage( reply.Version, fault.CreateMessageFault(), reply.Headers.Action); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)