Muonroi.RuleEngine.Runtime
2.0.1
See the version list below for details.
dotnet add package Muonroi.RuleEngine.Runtime --version 2.0.1
NuGet\Install-Package Muonroi.RuleEngine.Runtime -Version 2.0.1
<PackageReference Include="Muonroi.RuleEngine.Runtime" Version="2.0.1" />
<PackageVersion Include="Muonroi.RuleEngine.Runtime" Version="2.0.1" />
<PackageReference Include="Muonroi.RuleEngine.Runtime" />
paket add Muonroi.RuleEngine.Runtime --version 2.0.1
#r "nuget: Muonroi.RuleEngine.Runtime, 2.0.1"
#:package Muonroi.RuleEngine.Runtime@2.0.1
#addin nuget:?package=Muonroi.RuleEngine.Runtime&version=2.0.1
#tool nuget:?package=Muonroi.RuleEngine.Runtime&version=2.0.1
Muonroi.RuleEngine.Runtime
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, andFileRuleSetStore. - Hot-Reload & Caching: Fast rule execution with
RuleSetRuntimeCacheand live updates viaICanaryRolloutServiceandRuleSetApprovalService. - Security & Integrity: Ensure rule validity using
IRuleSetSigner,HmacSha256RuleSetSigner, andRsaRuleSetAuditSigner. - Rule Adapters: Execute different rule types via
FeelRuleAdapter,DecisionTableRuleAdapter, andSubFlowRuleAdapter. - Workflow Graphs: Compile and dispatch complex execution flows using
RuleGraphParserandGraphRuleDispatchAdapter.
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 | Versions 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. |
-
net8.0
- Jint (>= 4.6.3)
- Microsoft.Extensions.Caching.Memory (>= 10.0.3)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.3)
- Muonroi.Caching.Memory (>= 2.0.1)
- Muonroi.Core (>= 2.0.1)
- Muonroi.Core.Abstractions (>= 2.0.1)
- Muonroi.Governance.Abstractions (>= 2.0.1)
- Muonroi.Integration.Abstractions (>= 2.0.1)
- Muonroi.Messaging.Abstractions (>= 2.0.1)
- Muonroi.RuleEngine.Abstractions (>= 2.0.1)
- Muonroi.RuleEngine.Core (>= 2.0.1)
- Muonroi.RuleEngine.DecisionTable (>= 2.0.1)
- Muonroi.Templating.Abstractions (>= 2.0.1)
- RulesEngine (>= 6.0.0)
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.RuleEngine.Runtime.Web
Runtime ruleset governance Web API and UI-engine manifest integration for Muonroi RuleEngine. |
|
|
Muonroi.AspNetCore.RuleEngine
ASP.NET Core rule engine integration: Auto CRUD with RuleOrchestrator, generic controllers, and rule change management. |
|
|
Muonroi.UiEngine.Catalog
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.2 | 218 | 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 |