Corfedo.Work
0.1.0
Prefix Reserved
See the version list below for details.
dotnet add package Corfedo.Work --version 0.1.0
NuGet\Install-Package Corfedo.Work -Version 0.1.0
<PackageReference Include="Corfedo.Work" Version="0.1.0" />
<PackageVersion Include="Corfedo.Work" Version="0.1.0" />
<PackageReference Include="Corfedo.Work" />
paket add Corfedo.Work --version 0.1.0
#r "nuget: Corfedo.Work, 0.1.0"
#:package Corfedo.Work@0.1.0
#addin nuget:?package=Corfedo.Work&version=0.1.0
#tool nuget:?package=Corfedo.Work&version=0.1.0
Corfedo Work
Background work for .NET that lives in your database and commits in your transactions: jobs and cron schedules, leases on your own rows with fenced writes, reconciliation and commit-time wake-ups. A rollback leaves no work behind, and a crashed worker's work is picked up again. There is no broker and no scheduler process. PostgreSQL is supported today; SQL Server is planned.
Install the package for your database, which brings in Corfedo.Work:
dotnet add package Corfedo.Work.PostgreSql
public sealed record WelcomeArgs(long UserId);
public static class Jobs
{
public static readonly JobDefinition<WelcomeArgs> Welcome =
JobDefinition.Create("users.welcome", 1, JobArgs.Json<WelcomeArgs>());
}
public sealed class SendWelcome : IJobHandler<WelcomeArgs>
{
public async ValueTask<JobDisposition> RunAsync(WelcomeArgs args, JobRun run, CancellationToken ct)
{
// Send the email. A thrown exception retries the job after a backoff.
return JobResult.Completed;
}
}
// Program.cs
builder.Services.AddPostgreSqlWorkStore(dataSource);
builder.Services.AddWork(work => work.AddJob<WelcomeArgs, SendWelcome>(Jobs.Welcome));
// In the transaction that creates the user:
await jobs.RequestAsync(transaction.WorkTransaction(), Jobs.Welcome, new WelcomeArgs(42), Schedule.Now);
The README has the full first example, and the guides cover jobs, leases, reconciliation, signals, transactions, testing and production.
Corfedo Work is licensed under Apache-2.0. Corfedo names, logos and brand assets are reserved; see the NOTICE file.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Cronos (>= 0.13.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Corfedo.Work:
| Package | Downloads |
|---|---|
|
Corfedo.Work.EntityFrameworkCore
Entity Framework Core adapter for Corfedo Work: maps lease and reconciliation fields onto entities, joins work operations and signals to a DbContext's transaction and wakes claimers when saved changes make records due. |
|
|
Corfedo.Work.PostgreSql
PostgreSQL store for Corfedo Work, over Npgsql: background jobs, cron schedules and leases in your PostgreSQL database, requested in your transactions and woken at commit through LISTEN/NOTIFY. |
|
|
Corfedo.Work.InMemory
In-memory store provider for Corfedo Work, with a controllable clock, for tests of applications that use Corfedo Work in one process. Not for production use. |
|
|
Corfedo.Work.Conformance
Conformance suite for Corfedo Work store providers, on xUnit v3: a provider's own tests run its scenarios to show the guarantees the store contract requires. |
|
|
Corfedo.Work.SqlServer
SQL Server store for Corfedo Work, over Microsoft.Data.SqlClient: background jobs, cron schedules and leases in your SQL Server database, requested in your transactions and woken at commit through a signals table. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.13.0 | 163 | 12/1/2026 |
| 0.12.0 | 199 | 11/22/2026 |
| 0.11.0 | 153 | 11/22/2026 |
| 0.10.0 | 166 | 11/21/2026 |
| 0.9.0 | 192 | 11/13/2026 |
| 0.8.0 | 161 | 11/11/2026 |
| 0.7.0 | 158 | 11/11/2026 |
| 0.6.0 | 148 | 11/11/2026 |
| 0.5.0 | 152 | 11/11/2026 |
| 0.4.0 | 164 | 11/8/2026 |
| 0.3.0 | 149 | 11/7/2026 |
| 0.2.0 | 159 | 11/4/2026 |
| 0.1.0 | 162 | 11/1/2026 |