/// <summary> /// Initializes a new instance of the <see cref="CbisSupplierManagementClient"/> class. /// </summary> /// <param name="endpointConfigurationName">Name of the endpoint configuration.</param> /// <param name="userName">Name of the user.</param> /// <param name="password">The password.</param> /// <exception cref="System.ArgumentNullException">endpointConfigurationName as null</exception> public CbisSupplierManagementClient(string endpointConfigurationName, string userName, string password) { if (string.IsNullOrEmpty(endpointConfigurationName)) { throw new ArgumentNullException("endpointConfigurationName"); } _client = new InformationSystemManagementClient(endpointConfigurationName); SetCrendentials(userName, password); }
/// <summary> /// Initializes a new instance of the <see cref="CbisSupplierManagementClient" /> class. /// </summary> /// <param name="binding">The binding.</param> /// <param name="endpoint">The endpoint.</param> /// <param name="userName">Name of the user.</param> /// <param name="password">The password.</param> /// <exception cref="System.ArgumentNullException"> /// binding /// or /// endpoint /// </exception> public CbisSupplierManagementClient(Binding binding, EndpointAddress endpoint, string userName, string password) { if (binding == null) { throw new ArgumentNullException("binding"); } if (endpoint == null) { throw new ArgumentNullException("endpoint"); } _client = new InformationSystemManagementClient(binding, endpoint); SetCrendentials(userName, password); }