/// <summary> /// Entry method. /// </summary> /// <param name="args">arguments</param> public static void Main(string[] args) { COMReceiver.GetInstance().DeleteAllMessages(); EventSender.GetInstance().StartConnection(ServerInformation.LOCAL_HOST, ServerInformation.DEFAULT_PORT); /* Get input from COM */ COMReceiver.GetInstance().StartReceivingMessages(); /* Get WebPage URL from IE */ WebPageWatcher.GetInstance().StartMonitoring(); /* Monitors files */ //GeneralFileWatcher.GetInstance().Start(); FileMonitor.GetInstance().StartMonitoring(); /* Monitors Apps/Programs */ ProgramWatcher.GetInstance().StartMonitoring(); /* Monitors Folder/Directories */ FolderMonitor.GetInstance().StartMonitoring(); // Monitor emails EmailMonitor.GetInstance().StartMonitoring(); while (active) { // runs indefinitely until terminated by user via task manager } }
public void StartMonitoring() { COMReceiver.GetInstance().StartReceivingMessages(); filewatcher.Start(); }