icon and docs link

This commit is contained in:
bojancrevar
2026-02-25 16:29:38 +01:00
parent 74ba5d455b
commit 7ee6ca1a52
3 changed files with 11 additions and 7 deletions
@@ -4,9 +4,11 @@
<TargetFramework>net8.0</TargetFramework>
<PackageId>GoRules.ZenEngine</PackageId>
<Authors>GoRules</Authors>
<Company>GoRules</Company>
<Description>ZEN Engine - Business Rules Engine for .NET. Execute JSON Decision Models (JDM) with native performance via Rust FFI bindings.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/gorules/zen</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/gorules/zen</RepositoryUrl>
<PackageTags>rules-engine;business-rules;decision-engine;jdm;gorules</PackageTags>
<ImplicitUsings>enable</ImplicitUsings>
@@ -19,6 +21,7 @@
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="/" />
<None Include="icon.png" Pack="true" PackagePath="" />
</ItemGroup>
<!-- C# source files (generated + custom) -->
+8 -7
View File
@@ -13,6 +13,12 @@ dotnet add package GoRules.ZenEngine
```csharp
using GoRules.ZenEngine;
// Create engine and evaluate
var engine = new ZenEngine(loader: new FileLoader(), customNode: null);
var context = new JsonBuffer("{\"input\": 42}");
var response = await engine.Evaluate("my-decision.json", context, null);
Console.WriteLine(response.result.ToString());
// Implement a loader to resolve decision files
class FileLoader : ZenDecisionLoaderCallback
{
@@ -22,12 +28,6 @@ class FileLoader : ZenDecisionLoaderCallback
return Task.FromResult<JsonBuffer?>(new JsonBuffer(bytes));
}
}
// Create engine and evaluate
var engine = new ZenEngine(loader: new FileLoader(), customNode: null);
var context = new JsonBuffer("{\"input\": 42}");
var response = await engine.Evaluate("my-decision.json", context, null);
Console.WriteLine(response.result.ToString());
```
## Features
@@ -66,6 +66,7 @@ var result = ZenUniffiMethods.EvaluateExpression(
// Compiled expression (reusable, better performance)
var expr = ZenExpression.Compile("a + b * 2");
var output = expr.Evaluate(new JsonBuffer("{\"a\": 1, \"b\": 10}"));
Console.WriteLine($"output: {output}");
expr.Dispose();
```
@@ -92,5 +93,5 @@ var engine = new ZenEngine(loader: new FileLoader(), customNode: new MyCustomNod
## Links
- [GitHub Repository](https://github.com/gorules/zen)
- [GoRules Documentation](https://gorules.io/docs)
- [GoRules Documentation](https://gorules.mintlify.app/developers/sdks/csharp)
- [JDM Editor](https://editor.gorules.io)
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB