| | |
| | | using System.Net; |
| | | using System.ServiceModel; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using XiGang.Core.Model; |
| | | using XiGang.Core.Model.ViewModels; |
| | |
| | | |
| | | |
| | | #region 对外发布WCF形式数据访问服务 |
| | | Task.Run(() => |
| | | { |
| | | try |
| | | { |
| | | #region 对外发布WCF形式数据访问服务 |
| | |
| | | lbl_WCFMsg.Text = "发布WCF失败:" + ex.Message; |
| | | lbl_WCFMsg.ForeColor = Color.Red; |
| | | } |
| | | }); |
| | | |
| | | #endregion |
| | | |
| | |
| | | using System.Linq; |
| | | using iWareCommon; |
| | | using Newtonsoft.Json.Linq; |
| | | |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace iWareSda |
| | | { |
| | |
| | | { |
| | | #region 对外发布WCF形式数据访问服务 |
| | | |
| | | Task.Run(() => |
| | | { |
| | | var StationServiceHost = new ServiceHost(typeof(iWareSda.StationService)); |
| | | StationServiceHost.Open(); |
| | | }); |
| | | |
| | | #endregion |
| | | |