private void ConnectManage() { try { NetTcpBinding b = new NetTcpBinding(); b.Security.Mode = SecurityMode.None; EndpointAddress vEndPoint = new EndpointAddress(ScanData.EndpointManage); ChannelFactory <IBcManageService> cf = new ChannelFactory <IBcManageService> (b, vEndPoint); _manageService = cf.CreateChannel(); var p = _manageService.Ping(); Process.Driver.ManageService = _manageService; } catch (Exception ex) { Logger.Error("LOI CONNECT SERVER : ", ex); } }
private void ConnectManage() { try { NetTcpBinding b = new NetTcpBinding(); b.Security.Mode = SecurityMode.None; b.MaxReceivedMessageSize = 2147483647; b.MaxBufferPoolSize = 2147483647; //101.251.121.241 EndpointAddress vEndPoint = new EndpointAddress(ScanData.EndpointManage); ChannelFactory <IBcManageService> cf = new ChannelFactory <IBcManageService> (b, vEndPoint); service = cf.CreateChannel(); var p = service.Ping(); } catch (Exception ex) { MessageBox.Show("LOI CONNECT SERVER"); Logger.Error("LOI CONNECT SERVER : ", ex); } }
private void ConnectManage() { try { //var aaa = cf.State; NetTcpBinding b = new NetTcpBinding(); b.Security.Mode = SecurityMode.None; //101.251.121.241 EndpointAddress vEndPoint = new EndpointAddress(ClientData.EndpointManage); cf = new ChannelFactory <IBcManageService> (b, vEndPoint); service = cf.CreateChannel(); var p = service.Ping(); } catch (Exception ex) { MessageBox.Show("LOI CONNECT SERVER"); Logger.Error("LOI CONNECT SERVER : ", ex); } }