Skip to content

v1.1.0

Latest

Choose a tag to compare

@logan-cy logan-cy released this 20 Oct 15:16
· 3 commits to main since this release

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(Check and CheckAsync).
  • 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 EvaluationIssue objects.
  • 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 Check to handle more complex LINQ expressions.
  • Introduced retroactive Build() returning a new EvaluationResult.
  • 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

License: MIT