static void Main(string[] args) { SqlFailedLoginWatcher watcher = new SqlFailedLoginWatcher(); watcher.AttackDetected += new AttackDetectedHandler(watcher_AttackDetected); watcher.Start(); Console.ReadKey(); watcher.Stop(); }