EverTask

EverTask Documentation

NuGet Downloads License


EverTask is a .NET background task execution library built for persistence and resilience. If you need to process work in the background, handle scheduled jobs, or build fault-tolerant task pipelines, you’re in the right place.

Quick Example

// 1. Register in Program.cs
builder.Services.AddEverTask(options =>
    options.RegisterTasksFromAssemblyContaining<SendEmailTask>()
).AddSqlServerStorage(connectionString);

// 2. Define your task
public record SendEmailTask(string To, string Subject) : IEverTask;

// 3. Define your handler
public class SendEmailHandler : EverTaskHandler<SendEmailTask>
{
    public override async Task Handle(SendEmailTask task, CancellationToken ct)
    {
        await _emailService.SendAsync(task.To, task.Subject);
    }
}

// 4. Dispatch anywhere
await _dispatcher.DispatchAsync(new SendEmailTask("user@example.com", "Hello!"));

That’s it! EverTask persists the task, handles retries on failure, and executes it in the background. Learn more in Getting Started.

Table of Contents

Getting Started

Core Concepts

Advanced Topics

Support

Questions? Found a bug? Want to contribute? Head over to our GitHub Issues page.


Copyright © 2025 Giampaolo Gabba. Distributed under the APACHE 2.0 License.