/// <summary> /// Ask for config from server /// </summary> public void getConfig() { WebCommunicator client = WebCommunicator.Instance; client.sendToServer(new TCPEventArgs((int)CommandEnum.GetConfigCommand, null)); // System.Threading.Thread.Sleep(500); //In order to show the info smoothly }
/// <summary> /// Remove the handler /// </summary> /// <param name="handler">the handler to be removed</param> public void RemoveHandler(string handler) { WebCommunicator client = WebCommunicator.Instance; client.sendToServer(new TCPEventArgs((int)CommandEnum.CloseCommand, handler)); }
/// <summary> /// Ask from server the log from the start of the service /// </summary> public void getCurrentLog() { WebCommunicator client = WebCommunicator.Instance; client.sendToServer(new TCPEventArgs((int)CommandEnum.LogCommand, null)); }