/// <summary> /// Enable custom message inspector /// </summary> /// <param name="endpoint"></param> /// <param name="clientRuntime"></param> public void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime) { MessageInspector inspector = new MessageInspector(this.clientConfig, serviceName); clientRuntime.MessageInspectors.Add(inspector); }
/// <summary> /// Enable custom message inspector /// </summary> /// <param name="endpoint"></param> /// <param name="clientRuntime"></param> public void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime) { MessageInspector inspector = new MessageInspector(this.clientConfig, serviceName); clientRuntime.MessageInspectors.Add(inspector); }