using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.IO; using Microsoft.Extensions.Configuration; using System.Threading; using BPASmartClient.Helper; using BPASmartClient.Message; using BPA.ApolloClient; using BPA.ApolloClient.Options; using Com.Ctrip.Framework.Apollo; namespace BPASmartClient.Business { /// /// 网络信息数据 /// public class InternetInfo { /// /// 配置初始化 /// public static void InitConfig() { NetworkConnectState = UniversalHelper.GetInstance().GetNetworkState(); while (!NetworkConnectState) { NetworkConnectState = UniversalHelper.GetInstance().GetNetworkState(); Thread.Sleep(2000); } } /// /// 网络连接状态 /// public static bool NetworkConnectState { get; set; } #region API地址 /// /// Api 网关地址 /// public static string ApiAddress { get; set; } /// /// 订单服务 /// public static string OrderServer { get; set; } /// /// 库存服务 /// public static string StockServer { get; set; } /// /// 是否启用测试模式 /// public static bool IsEnableTest { get; set; } /// /// 大屏地址 /// public static string DataVApiAddress { get; set; } /// /// 大屏主题 /// public static string BroadcastPubTopic { get; set; } /// /// 物料管理地址 /// public static string WebServiceUri { get; set; } #endregion } }