public void Initialize(string host, int port) { _host = host; _port = port; try { _webDataClient = new RTClient(); _webDataClient.Connect(_host, _port); _webDataClient.Login("WebDispatcher"); _webDataClient.DataReceived += DataClient_DataReceived; // _webDataClient.CommandReceived += DataClient_CommandReceived; _webDataClient.Register(new string[] { "*" }); _macAddress = SystemHelper.GetMACAddress(string.Empty); } catch (Exception ex) { _logService.Error(string.Format("ExistCatch:<-{0}->:{1}", "Initialize", ex.ToString())); } }