Skip to content

Releases: asulwer/RulesEngine

6.0.4

12 Aug 19:21
ee4f45a
Compare
Choose a tag to compare

skipped version numbering system 6.0.2 and 6.0.3 due to old conflicts with nuget packaging system

  • Updated dependencies to latest

6.0.1

12 Jul 08:42
12e0fbf
Compare
Choose a tag to compare

Added

  • Preserve Original Object: Introduced OriginalValue property in RuleParameter to preserve the original Expando without converting its type.
  • TryGetPropertyValue Method: Implemented TryGetPropertyValue to safely access properties, returning a boolean indicating success and setting the out parameter to the property value or null if not found.

6.0.0

03 Jul 21:17
Compare
Choose a tag to compare

GitHub Actions

  • Updated codeql task.
  • Updated coverallsapp/github-action from v2.2.1 to v2.3.0.

Changed

  • Switched JSON serialization library from Newtonsoft.Json to System.Text.Json.

Added

  • Added more demo examples in the demo project.
  • Action context now has access to cancellation tokens.
  • New overloads for ExecuteAllRulesAsync to support cancellation tokens:
    ValueTask<List<RuleResultTree>> ExecuteAllRulesAsync(string workflowName, CancellationToken cancellationToken, params object[] inputs);
    ValueTask<List<RuleResultTree>> ExecuteAllRulesAsync(string workflowName, RuleParameter[] ruleParams, CancellationToken cancellationToken);
  • New overload for ExecuteActionWorkflowAsync to support cancellation tokens:
    ValueTask<ActionRuleResult> ExecuteActionWorkflowAsync(string workflowName, string ruleName, RuleParameter[] ruleParameters, CancellationToken cancellationToken);
  • Added a GetCancellationToken method in ActionContext to get the cancellation token:
    public CancellationToken GetCancellationToken();

Fixed

  • All issues in the master fork have been resolved, usually with a demo app supporting the solution.

Target Framework

  • Only targeting netstandard2.1.