private SMSBusiness() { _sendMessage = bool.Parse(ConfigManage.GetInstance().GetConfigByKey("SendMessage")); if (_sendMessage) { _client = new UdpClient(); string ipAddress = ConfigManage.GetInstance().GetConfigByKey("PlatformAddress"); int port = int.Parse(ConfigManage.GetInstance().GetConfigByKey("PlatformPort")); _remoteIpEndPoint = new IPEndPoint(IPAddress.Parse(ipAddress), port); MonitorAlarmBusiness.GetInstance().SendMessage += SMSBusiness_SendMessage; } }