Benevia.Core.Automation
0.10.4
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Benevia.Core.Automation --version 0.10.4
NuGet\Install-Package Benevia.Core.Automation -Version 0.10.4
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="Benevia.Core.Automation" Version="0.10.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Benevia.Core.Automation" Version="0.10.4" />
<PackageReference Include="Benevia.Core.Automation" />
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 Benevia.Core.Automation --version 0.10.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Benevia.Core.Automation, 0.10.4"
#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 Benevia.Core.Automation@0.10.4
#: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=Benevia.Core.Automation&version=0.10.4
#tool nuget:?package=Benevia.Core.Automation&version=0.10.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Benevia.Core.Automation
Introduction
This package lets a company admin run background work when business records change, with no custom code. A trigger watches one entity type for one kind of change, and its subscribers run in the background. Each run is logged as a subscriber run.
Platform user documentation: Automation
Modules
Model- theTrigger,TriggerSubscription,SubscriberandSubscriberRunentities. They implementIAutomationEntity, so a trigger can never watch them and fire itself.Triggers- change detection.TriggerSaveObserverandCommandExecutedListenerread committed saves and finished commands.TriggerDetectormatches them against the tenant's cached triggers, and hands one firing per active subscriber to theRunScheduleronce the commit is final.TriggerStampmoves with every trigger change, so every server can tell its cached triggers are old.Subscribers- theRunSchedulerthat writes each firing as a Scheduled run, theRunStorethat keeps the run log rows and the firing each run starts from,WaitingTenants, the line of tenants that may have waiting runs, theWaitingRunPollerthat finds the runs other servers wrote or left behind and drops the cached triggers another server changed, the backgroundTriggerWorkerthat claims the runs from each tenant's database, theSubscriberRunnerthat runs a subscriber with its timeout, the subscriber contractITriggerSubscriber, and the built-inApplicationLogTriggerSubscriber.DependencyInjection- theAddCoreAutomation()registration for API hosts, and itsAutomationOptions.
Architecture
flowchart LR
Save["Committed save or command"] --> Detect["Triggers: match cached triggers"]
Detect --> Schedule["Subscribers: Scheduled run rows"]
Schedule --> Line["Tenants with waiting runs"]
Poll["Subscribers: poll for waiting and dead runs"] --> Line
Line --> Worker["Subscribers: worker and runner"]
Worker -->|claims| Schedule
Worker --> Run["SubscriberRun row"]
See ARCHITECTURE.md for the rules behind each step.
Setup
Register the package in an API host:
using Benevia.Core.Automation.DependencyInjection;
services.AddCoreAutomation();
| 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
- Benevia.Core (>= 0.10.4)
- Benevia.Core.API (>= 0.10.4)
- Benevia.Core.API.Events (>= 0.10.4)
- Benevia.Core.API.Workflows (>= 0.10.4)
- Benevia.Core.Events (>= 0.10.4)
- Benevia.Core.Events.DataTypes (>= 0.10.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 |
|---|---|---|
| 0.10.5-ci.753 | 0 | 11/18/2026 |
| 0.10.5-ci.752 | 0 | 11/18/2026 |
| 0.10.5-ci.751 | 0 | 11/18/2026 |
| 0.10.5-ci.750 | 0 | 11/18/2026 |
| 0.10.5-ci.749 | 0 | 11/18/2026 |
| 0.10.5-ci.748 | 0 | 11/18/2026 |
| 0.10.5-ci.747 | 0 | 11/18/2026 |
| 0.10.5-ci.746 | 8 | 11/18/2026 |
| 0.10.5-ci.745 | 44 | 11/18/2026 |
| 0.10.5-ci.744 | 42 | 11/17/2026 |
| 0.10.5-ci.743 | 48 | 11/17/2026 |
| 0.10.5-ci.742 | 105 | 11/17/2026 |
| 0.10.5-ci.741 | 48 | 11/17/2026 |
| 0.10.5-ci.740 | 84 | 11/16/2026 |
| 0.10.5-ci.739 | 51 | 11/16/2026 |
| 0.10.5-ci.738 | 51 | 11/16/2026 |
| 0.10.5-ci.737 | 82 | 11/16/2026 |
| 0.10.5-ci.736 | 50 | 11/16/2026 |
| 0.10.5-ci.733 | 56 | 11/16/2026 |
| 0.10.4 | 89 | 11/12/2026 |
Loading failed