EventStoreCore.Quartz 1.0.2-beta.2

This is a prerelease version of EventStoreCore.Quartz.
dotnet add package EventStoreCore.Quartz --version 1.0.2-beta.2
                    
NuGet\Install-Package EventStoreCore.Quartz -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.Quartz" 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.Quartz" Version="1.0.2-beta.2" />
                    
Directory.Packages.props
<PackageReference Include="EventStoreCore.Quartz" />
                    
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 EventStoreCore.Quartz --version 1.0.2-beta.2
                    
#r "nuget: EventStoreCore.Quartz, 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.Quartz@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.Quartz&version=1.0.2-beta.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=EventStoreCore.Quartz&version=1.0.2-beta.2&prerelease
                    
Install as a Cake Tool

EventStoreCore.Quartz

Quartz-backed scheduler integration for EventStoreCore subscriptions.

Usage

Configure Quartz normally, then register a provider-native action:

services.AddQuartz();
services.AddQuartzHostedService(options => options.WaitForJobsToComplete = true);

services.AddEventStore(builder =>
{
    builder.ExistingDbContext<MyEventStoreDbContext>();
    builder.AddSubscriptionDaemon<MyEventStoreDbContext>();

    builder.AddScheduler(s =>
    {
        s.UsingQuartz();

        s.On<OrderPlaced>().Quartz("payment-timeout", async (e, scheduler, sp, ct) =>
        {
            var jobKey = new JobKey($"payment-timeout:{e.Data.OrderId}", "payments");
            var triggerKey = new TriggerKey($"payment-timeout:{e.Data.OrderId}", "payments");

            if (await scheduler.CheckExists(jobKey, ct))
            {
                await scheduler.DeleteJob(jobKey, ct);
            }

            var job = JobBuilder.Create<PaymentTimeoutQuartzJob>()
                .WithIdentity(jobKey)
                .UsingJobData("order-id", e.Data.OrderId.ToString("D"))
                .UsingJobData("source-event-id", e.Id.ToString("D"))
                .Build();

            var trigger = TriggerBuilder.Create()
                .WithIdentity(triggerKey)
                .ForJob(job)
                .StartAt(DateBuilder.FutureDate(15, IntervalUnit.Minute))
                .Build();

            await scheduler.ScheduleJob(job, trigger, ct);
        });
    });
});

Contract

  • The application owns its DbContext, EventStoreCore migrations, Quartz storage, and hosted-service lifetime. ExistingDbContext<TDbContext>() enables database-backed replay deduplication for scheduler actions.
  • The action receives Quartz IScheduler.
  • The IServiceProvider callback argument is scoped to the action invocation.
  • EventStoreCore invokes the action at most once for the same registration, tenant id, and EventStore EventId.
  • Quartz owns job persistence, trigger semantics, execution, cancellation, and replacement behavior.
  • Job bodies must remain idempotent and re-check current stream state before acting.
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
1.0.2-beta.2 55 7/28/2026
1.0.2-beta.1 51 7/26/2026