Exemplo n.º 1
0
        public void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime)
        {
            HttpUserAgentMessageInspector inspector = new HttpUserAgentMessageInspector(_proc);

            clientRuntime.MessageInspectors.Add(inspector);
        }
Exemplo n.º 2
0
 public void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime)
 {
     HttpUserAgentMessageInspector inspector = new HttpUserAgentMessageInspector(this.m_userAgent);
     clientRuntime.MessageInspectors.Add(inspector);
 }