HostLoom.Scheduling.DependencyInjection 0.17.0

dotnet add package HostLoom.Scheduling.DependencyInjection --version 0.17.0
                    
NuGet\Install-Package HostLoom.Scheduling.DependencyInjection -Version 0.17.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="HostLoom.Scheduling.DependencyInjection" Version="0.17.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HostLoom.Scheduling.DependencyInjection" Version="0.17.0" />
                    
Directory.Packages.props
<PackageReference Include="HostLoom.Scheduling.DependencyInjection" />
                    
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 HostLoom.Scheduling.DependencyInjection --version 0.17.0
                    
#r "nuget: HostLoom.Scheduling.DependencyInjection, 0.17.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 HostLoom.Scheduling.DependencyInjection@0.17.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=HostLoom.Scheduling.DependencyInjection&version=0.17.0
                    
Install as a Cake Addin
#tool nuget:?package=HostLoom.Scheduling.DependencyInjection&version=0.17.0
                    
Install as a Cake Tool

HostLoom.Scheduling.DependencyInjection

This package registers the HostLoom.Scheduling kernel with Microsoft.Extensions.DependencyInjection and starts it with the host:

services
    .AddHostLoomScheduling()
    .AddSchedule<RebuildCatalogJob>(
        "catalog:rebuild",
        ScheduleTrigger.Cron("0 0 2 * * *"),
        options => options.Exclusive = true)
    .AddSchedule(
        "inventory:sync",
        ScheduleTrigger.FixedDelay(TimeSpan.FromSeconds(30)),
        static (provider, run, token) => provider.GetRequiredService<InventorySync>().RunAsync(token))
    .UseDistributedLock();   // from HostLoom.Scheduling.Locking

AddHostLoomScheduling binds SchedulingOptions, validates them when the host starts with messages that name the option at fault, registers the Scheduler as a singleton composed from every schedule and the guard chosen on the builder, and adds the hosted service that starts and stops it with the host. It works without AddHostLoom(); nothing here references the messaging kernel. Repeated calls return a builder over the same registration, and every registration is TryAdd, so an application can register its own TimeProvider first.

AddSchedule<TJob> resolves the job from a fresh dependency-injection scope for every run, so a job takes scoped dependencies through its constructor like a request handler does; the job type is registered scoped if nothing registered it already. The delegate overload receives the root provider and creates its own scope when it needs one. Schedule names are unique within a service collection, and a repeat is refused at registration rather than at startup.

Exactly one guard per service collection: an adapter such as HostLoom.Scheduling.Locking adds its own Use* extension over UseGuard<TGuard>(name), and a second Use* throws naming the guard already chosen. An IScheduleGuard registered before the Use* call is refused as well, naming it, since it would have taken precedence while the probe reported the chosen guard; register a test double after the builder to replace the guard deliberately, or register the guard type itself first and choose it with UseGuard<TGuard>. A schedule registered with Exclusive = true and no guard fails startup validation with a message that names the builder method to call.

See the HostLoom.Scheduling package README for the triggers, the run contract, and the outcome and lifecycle semantics.

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 (2)

Showing the top 2 NuGet packages that depend on HostLoom.Scheduling.DependencyInjection:

Package Downloads
HostLoom.Scheduling.Leadership

Runs exclusive HostLoom schedules on the elected leader only, without a lock round trip per occurrence.

HostLoom.Scheduling.Locking

Runs exclusive HostLoom schedules on one instance at a time by claiming them through the HostLoom distributed lock.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.17.0 56 10/25/2026
0.16.1 60 10/22/2026
0.16.0 96 10/14/2026
0.15.1 101 10/12/2026
0.15.0 117 10/4/2026
0.14.0 118 10/4/2026
0.13.0 120 9/28/2026
0.12.0 112 9/27/2026
0.11.0 119 9/25/2026
0.10.0 122 9/22/2026
0.9.0 117 9/22/2026