Release Date: 2025-10-20
Summary
OpenSense is a lightweight, fluent validation and evaluation framework for .NET that lets you define health checks and self-healing rules for your entities. It's designed to be composable, intuitive, and dependency-free.
Highlights
- Introduces the
Evaluator<T>pattern for generic entity evaluation. - Fluent API for chaining checks(
CheckandCheckAsync). - Two evaluation modes:
- Mutation-based: result object is updated as checks are performed.
- Non-mutating / Retroactive: evaluation occurs and returns a result without mutating an existing object.
- Priority-ordered reporting via
EvaluationIssueobjects. - Example of self-healing: updating entity state based on evaluation results.
- Fully compatible with .NET 9.0.
- Zero runtime dependencies.
Bug Fixes / Improvemens Since Pre-Release / Prototype:
- Added async evaluation support with cancellation tokens.
- Enhanced
Checkto handle more complex LINQ expressions. - Introduced retroactive
Build()returning a newEvaluationResult. - Minor API and ergonomic improvements (nullable-safe, better result handling).
Getting Started:
See the README for examples of evaluation and self-healing usage.
Installation
dotnet add package OpenSense