Benevia.Core.Automation 0.10.4

There is a newer prerelease version of this package available.
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" />
                    
Directory.Packages.props
<PackageReference Include="Benevia.Core.Automation" />
                    
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 Benevia.Core.Automation --version 0.10.4
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Benevia.Core.Automation&version=0.10.4
                    
Install as a Cake Tool

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 - the Trigger, TriggerSubscription, Subscriber and SubscriberRun entities. They implement IAutomationEntity, so a trigger can never watch them and fire itself.
  • Triggers - change detection. TriggerSaveObserver and CommandExecutedListener read committed saves and finished commands. TriggerDetector matches them against the tenant's cached triggers, and hands one firing per active subscriber to the RunScheduler once the commit is final. TriggerStamp moves with every trigger change, so every server can tell its cached triggers are old.
  • Subscribers - the RunScheduler that writes each firing as a Scheduled run, the RunStore that keeps the run log rows and the firing each run starts from, WaitingTenants, the line of tenants that may have waiting runs, the WaitingRunPoller that finds the runs other servers wrote or left behind and drops the cached triggers another server changed, the background TriggerWorker that claims the runs from each tenant's database, the SubscriberRunner that runs a subscriber with its timeout, the subscriber contract ITriggerSubscriber, and the built-in ApplicationLogTriggerSubscriber.
  • DependencyInjection - the AddCoreAutomation() registration for API hosts, and its AutomationOptions.

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 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
0.10.5-ci.788 0 11/25/2026
0.10.5-ci.787 0 11/25/2026
0.10.5-ci.786 0 11/25/2026
0.10.5-ci.785 0 11/25/2026
0.10.5-ci.784 6 11/25/2026
0.10.5-ci.783 41 11/25/2026
0.10.5-ci.782 43 11/25/2026
0.10.5-ci.781 45 11/24/2026
0.10.5-ci.780 54 11/24/2026
0.10.5-ci.779 52 11/23/2026
0.10.5-ci.778 103 11/23/2026
0.10.5-ci.777 56 11/23/2026
0.10.5-ci.776 57 11/23/2026
0.10.5-ci.775 53 11/23/2026
0.10.5-ci.774 59 11/23/2026
0.10.5-ci.773 52 11/23/2026
0.10.5-ci.772 62 11/23/2026
0.10.5-ci.771 53 11/23/2026
0.10.5-ci.770 59 11/23/2026
0.10.4 95 11/12/2026
Loading failed