Esempio n. 1
0
        public void InitServerDb()
        {
            if (!string.IsNullOrEmpty(CTGlobals.Settings.ServerIP))
            {
                _wcfEndPoint = new EndpointAddress("http://" + CTGlobals.Settings.ServerIP + ":8080/CustomerTracker/CustomerTrackerService");
                _myChannelFactory = new ChannelFactory<IService>(_wcfBinding, _wcfEndPoint);
            }
            _sqlService = _myChannelFactory.CreateChannel();

            _sqlService.InitDBAsync();
            //((IClientChannel)_sqlService).Close();
        }