static void Main(string[] args) { IActivityMonitor activityMonitor = ActivityMonitorFactory.Create(); activityMonitor.Configuration.MonitorRunInterval = 1 * 60 * 1000; activityMonitor.MonitorStarted += OnMonitorActivity; activityMonitor.MonitorStopped += OnMonitorActivity; activityMonitor.StartMonitorAsync().Wait(); System.Console.ReadKey(); }