namespace WebAPI.Interfaces { public interface ICrawlScheduler { bool AddTask(int id, Func> task); bool RemoveTask(int id); event EventHandler? OnResult; } }