EventStoreCore.Hangfire
1.0.2-beta.2
This is a prerelease version of EventStoreCore.Hangfire.
dotnet add package EventStoreCore.Hangfire --version 1.0.2-beta.2
NuGet\Install-Package EventStoreCore.Hangfire -Version 1.0.2-beta.2
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="EventStoreCore.Hangfire" Version="1.0.2-beta.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EventStoreCore.Hangfire" Version="1.0.2-beta.2" />
<PackageReference Include="EventStoreCore.Hangfire" />
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 EventStoreCore.Hangfire --version 1.0.2-beta.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EventStoreCore.Hangfire, 1.0.2-beta.2"
#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 EventStoreCore.Hangfire@1.0.2-beta.2
#: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=EventStoreCore.Hangfire&version=1.0.2-beta.2&prerelease
#tool nuget:?package=EventStoreCore.Hangfire&version=1.0.2-beta.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EventStoreCore.Hangfire
Hangfire-backed scheduler integration for EventStoreCore subscriptions.
Usage
Configure Hangfire normally, then register a provider-native action:
services.AddHangfire(config => config.UsePostgreSqlStorage(connectionString));
services.AddEventStore(builder =>
{
builder.ExistingDbContext<MyEventStoreDbContext>();
builder.AddSubscriptionDaemon<MyEventStoreDbContext>();
builder.AddScheduler(s =>
{
s.UsingHangfire();
s.On<OrderPlaced>().Hangfire("payment-timeout", (e, client, sp, ct) =>
{
client.Schedule<PaymentTimeoutJob>(
job => job.ExecuteAsync(e.Data.OrderId, e.Id, CancellationToken.None),
TimeSpan.FromMinutes(15));
return ValueTask.CompletedTask;
});
});
});
Contract
- The application owns its
DbContext, EventStoreCore migrations, Hangfire storage, and Hangfire server lifetime.ExistingDbContext<TDbContext>()enables database-backed replay deduplication for scheduler actions. - The action receives Hangfire
IBackgroundJobClient. - The
IServiceProvidercallback argument is scoped to the action invocation. - EventStoreCore invokes the action at most once for the same registration, tenant id, and EventStore
EventId. - Hangfire owns job persistence, execution, retries, cancellation, and replacement behavior.
- Job bodies must remain idempotent and re-check current stream state before acting.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- EventStoreCore (>= 1.0.2-beta.2)
- EventStoreCore.Scheduling (>= 1.0.2-beta.2)
- Hangfire.Core (>= 1.8.23)
- Microsoft.Extensions.Options (>= 10.0.1)
- Newtonsoft.Json (>= 13.0.4)
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 |
|---|---|---|
| 1.0.2-beta.2 | 58 | 7/28/2026 |
| 1.0.2-beta.1 | 53 | 7/26/2026 |