Backend (.NET 10): - EventFlow CQRS/Event Sourcing with PostgreSQL - GraphQL.NET API with mutations and queries - Custom ReadModelSqlGenerator for snake_case PostgreSQL columns - Hangfire for background job processing - Integration tests with isolated test databases Frontend (React/Vite): - Initial project structure 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
11 lines
400 B
C#
11 lines
400 B
C#
using System.Linq.Expressions;
|
|
|
|
namespace Books.Api.Infrastructure;
|
|
|
|
public interface IScheduler
|
|
{
|
|
void EnqueueJob<T>(Expression<Func<T, Task>> methodCall);
|
|
void EnqueueJob<T>(Expression<Func<T, Task>> methodCall, TimeSpan delay);
|
|
void EnqueueJob(Expression<Func<Task>> methodCall);
|
|
void AddOrUpdateScheduledJob<T>(string title, Expression<Func<T?, Task>> methodCall, string cron);
|
|
}
|