private void ScheduleMouseClickTask() { _trackMouseClickService.StartTracking(); _keystrokeAPI.CreateMouseHook((mouse) => { _trackMouseClickService.TrackHook(new MouseClickModel { Button = mouse.ButtonCode, X = mouse.X, Y = mouse.Y }); }); }