using System.Linq.Expressions; namespace Books.Api.Infrastructure; public interface IScheduler { void EnqueueJob(Expression> methodCall); void EnqueueJob(Expression> methodCall, TimeSpan delay); void EnqueueJob(Expression> methodCall); void AddOrUpdateScheduledJob(string title, Expression> methodCall, string cron); }