Corfedo.Work.EntityFrameworkCore 0.7.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Corfedo.Work.EntityFrameworkCore --version 0.7.0
                    
NuGet\Install-Package Corfedo.Work.EntityFrameworkCore -Version 0.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Corfedo.Work.EntityFrameworkCore" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Corfedo.Work.EntityFrameworkCore" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Corfedo.Work.EntityFrameworkCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Corfedo.Work.EntityFrameworkCore --version 0.7.0
                    
#r "nuget: Corfedo.Work.EntityFrameworkCore, 0.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Corfedo.Work.EntityFrameworkCore@0.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Corfedo.Work.EntityFrameworkCore&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Corfedo.Work.EntityFrameworkCore&version=0.7.0
                    
Install as a Cake Tool

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. It runs on PostgreSQL and SQL Server.

Install the package for your database, which brings in Corfedo.Work:

dotnet add package Corfedo.Work.PostgreSql   # or Corfedo.Work.SqlServer
public sealed record WelcomeArgs(long UserId);

public static class Jobs
{
    public static readonly JobDefinition<WelcomeArgs> Welcome = JobDefinition.Create<WelcomeArgs>("users.welcome");
}

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();   // the container's NpgsqlDataSource; or AddSqlServerWorkStore(connectionString)
builder.Services.AddWork(work => work.AddJob<WelcomeArgs, SendWelcome>(Jobs.Welcome));

// In the transaction that creates the user:
await jobs.RequestAsync(transaction, Jobs.Welcome, new WelcomeArgs(42));

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.12.0 119 11/22/2026
0.11.0 94 11/22/2026
0.10.0 109 11/21/2026
0.9.0 126 11/13/2026
0.8.0 103 11/11/2026
0.7.0 108 11/11/2026
0.6.0 99 11/11/2026
0.5.0 95 11/11/2026
0.4.0 112 11/8/2026
0.3.0 99 11/7/2026
0.2.0 104 11/4/2026
0.1.0 112 11/1/2026