public void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime) { HRXMLMessageInspector inspector = new HRXMLMessageInspector(); clientRuntime.MessageInspectors.Add(inspector); }
public void ApplyDispatchBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher) { HRXMLMessageInspector inspector = new HRXMLMessageInspector(); endpointDispatcher.DispatchRuntime.MessageInspectors.Add(inspector); }