Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <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);
 }