Muonroi.RuleEngine.Runtime 2.0.0

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

Muonroi.RuleEngine.Runtime

NuGet

Dynamic rule execution environment providing hot-reload, persistence, caching, and workflow graph dispatch for the Muonroi ecosystem.

Installation

dotnet add package Muonroi.RuleEngine.Runtime

Overview

The runtime layer provides the infrastructure to persist, load, and hot-reload rules. It features RulesEngineService and RuleEngine<T> for rule management. Rules are persisted via IRuleSetStore (such as PostgresRuleSetStore and FileRuleSetStore) and stored as RuleSetRecord entities. It also supports complex rule execution graphs through RuleGraphParser and GraphRuleDispatchAdapter.

Features

  • Rule Persistence: Store rules in databases or files using IRuleSetStore, RuleEngineDbContext, and FileRuleSetStore.
  • Hot-Reload & Caching: Fast rule execution with RuleSetRuntimeCache and live updates via ICanaryRolloutService and RuleSetApprovalService.
  • Security & Integrity: Ensure rule validity using IRuleSetSigner, HmacSha256RuleSetSigner, and RsaRuleSetAuditSigner.
  • Rule Adapters: Execute different rule types via FeelRuleAdapter, DecisionTableRuleAdapter, and SubFlowRuleAdapter.
  • Workflow Graphs: Compile and dispatch complex execution flows using RuleGraphParser and GraphRuleDispatchAdapter.

Quick Start

// Configure runtime rule services and persistence
builder.Services.AddRuleEngineRuntime(options =>
{
    options.UsePostgresRuleSetStore(connectionString);
    options.EnableRuntimeCache();
});

// Execute rules dynamically through the RulesEngineService
var engineService = provider.GetRequiredService<RulesEngineService>();
var result = await engineService.ExecuteAsync("fraud-detection-rules", factBag);

Ecosystem Combinations

+ RuleEngine.Core → Full Rule Engine Capabilities

Combines dynamic runtime persistence with the in-memory core execution orchestrator for a complete business rules engine.

+ Tenancy.Core → Multi-Tenant Rule Environments

IRuleSetStore partitions rule sets by tenant. Rollout rules via ICanaryRolloutService to specific tenants before deploying globally.

+ Observability → Runtime Telemetry

WorkflowCacheTelemetry provides OpenTelemetry metrics for rule cache hits/misses, eviction counters, and hot-reload lag.

Samples

License

Apache 2.0 — see LICENSE-APACHE.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (7)

Showing the top 5 NuGet packages that depend on Muonroi.RuleEngine.Runtime:

Package Downloads
Muonroi.Caching.Redis

Package Description

Muonroi.AuthZ

Package Description

Muonroi.AspNetCore.RuleEngine

ASP.NET Core rule engine integration: Auto CRUD with RuleOrchestrator, generic controllers, and rule change management.

Muonroi.RuleEngine.Runtime.Web

Runtime ruleset governance Web API and UI-engine manifest integration for Muonroi RuleEngine.

Muonroi.UiEngine.Catalog

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2 219 8/26/2026
2.0.1 236 8/26/2026
2.0.0 248 8/14/2026
1.0.0-alpha.11 135 4/2/2026