ControlAgentNet.Features.CronJobs
0.1.6
dotnet add package ControlAgentNet.Features.CronJobs --version 0.1.6
NuGet\Install-Package ControlAgentNet.Features.CronJobs -Version 0.1.6
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="ControlAgentNet.Features.CronJobs" Version="0.1.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ControlAgentNet.Features.CronJobs" Version="0.1.6" />
<PackageReference Include="ControlAgentNet.Features.CronJobs" />
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 ControlAgentNet.Features.CronJobs --version 0.1.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ControlAgentNet.Features.CronJobs, 0.1.6"
#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 ControlAgentNet.Features.CronJobs@0.1.6
#: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=ControlAgentNet.Features.CronJobs&version=0.1.6
#tool nuget:?package=ControlAgentNet.Features.CronJobs&version=0.1.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ControlAgentNet.Features.CronJobs
Cron-based execution of developer-defined code inside a ControlAgentNet host.
What It Does
- Registers deterministic jobs written as C# classes
- Executes them on a cron schedule and timezone
- Tracks in-memory runtime state such as last run, next run, errors, and failure count
- Avoids involving the agent runtime when the task is pure host logic
Usage
using ControlAgentNet.Features.CronJobs;
builder.Services.AddControlAgentAgent(builder.Configuration, builder.Environment, configureAgent: options =>
{
options.Id = "my-agent";
options.Name = "My Agent";
options.Instructions = "You are a helpful assistant.";
})
.AddCronJobs()
.AddCronJob<WebsitePingJob>(options =>
{
options.JobId = "website-ping";
options.CronExpression = "0 20 * * *";
options.TimeZoneId = "America/Caracas";
});
Model
ICronJobcontains the code you want to runCronExpressionandTimeZoneIddefine when it runsCronJobWorkerhandles timing and executionICronJobStateStoreexposes runtime state for inspection
| 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
- ControlAgentNet.Core (>= 0.1.7)
- ControlAgentNet.Runtime (>= 0.1.7)
- Cronos (>= 0.11.1)
- Microsoft.Extensions.Hosting (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ControlAgentNet.Features.CronJobs:
| Package | Downloads |
|---|---|
|
ControlAgentNet.Features.Heartbeat
Prompt-driven heartbeat tasks for ControlAgentNet agents. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.6 | 109 | 5/7/2026 |