コード例 #1
0
        public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
        {
            var inspector = new HeaderInspector("User-Agent", UserAgent);

            clientRuntime.MessageInspectors.Add(inspector);
        }
コード例 #2
0
        public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
        {
            var inspector = new HeaderInspector("User-Agent", UserAgent);

            clientRuntime.ClientMessageInspectors.Add(inspector);
        }