RuleLoom.AspNetCore 0.7.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RuleLoom.AspNetCore --version 0.7.0
                    
NuGet\Install-Package RuleLoom.AspNetCore -Version 0.7.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="RuleLoom.AspNetCore" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RuleLoom.AspNetCore" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="RuleLoom.AspNetCore" />
                    
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 RuleLoom.AspNetCore --version 0.7.0
                    
#r "nuget: RuleLoom.AspNetCore, 0.7.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 RuleLoom.AspNetCore@0.7.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=RuleLoom.AspNetCore&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=RuleLoom.AspNetCore&version=0.7.0
                    
Install as a Cake Tool

RuleLoom

Let your users weave their own business rules. You provide the threads (events, operators and actions); rules written as JSON, or built in code, combine them without a deployment. When something happens in your application (an order is placed, a price changes), RuleLoom runs the rules for that event against the current and previous state and runs or schedules their actions.

  • Conditions with eq, gt, gte, lt, lte, changed, and, or, not, plus your own operators
  • Paths on .NET objects or JSON state (JsonElement, JsonNode), including the previous state ($previous.Price)
  • Values compared by meaning: numbers across types, enums by name, ISO 8601 strings as dates
  • Actions you write (IAction), with their own conditions and delayed or advance scheduling
  • Validation that reports every problem with its JSON location; failures reported in results, not thrown

Packages

Package Use it for
RuleLoom The engine, built-in operators, validation
RuleLoom.Abstractions Contracts and models only (no dependencies)
RuleLoom.Extensions.DependencyInjection services.AddRuleLoom(...)
RuleLoom.AspNetCore app.MapRuleLoom("/rules"): the catalog and rule validation endpoints for an authoring UI
RuleLoom.Schemas Event schemas (fields, labels, contexts) as JSON Schema, generated from your DTOs

Example

{
  "id": "price-drop",
  "name": "Price drop",
  "eventType": "ProductUpdated",
  "condition": { "operator": "lt", "operands": [{ "path": "Price" }, { "path": "$previous.Price" }] },
  "actions": [{ "action": "send-email", "parameters": { "template": "price-drop" } }]
}
services.AddRuleLoom(rules => rules.AddCatalog(catalog => catalog.AddAction<SendEmailAction>()));   // "send-email"

var engine = scope.ServiceProvider.GetRequiredService<RuleEngine>();
var result = await engine.ExecuteAsync("ProductUpdated", current, previous, [RuleJsonParser.Parse(json)]);

Documentation

RuleLoom is pre-1.0: minor versions can contain breaking changes, listed in the upgrading guide.

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.8.1 57 11/28/2026
0.8.0 87 11/17/2026
0.7.0 117 10/26/2026