public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { string user = ConfigurationManager.AppSettings["User"]; string password = ConfigurationManager.AppSettings["Password"]; var inspector = new AuthenticationHeaderInspector {User = user, Password = password}; clientRuntime.MessageInspectors.Add(inspector); }
public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { string user = ConfigurationManager.AppSettings["User"]; string password = ConfigurationManager.AppSettings["Password"]; var inspector = new AuthenticationHeaderInspector { User = user, Password = password }; clientRuntime.MessageInspectors.Add(inspector); }