Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ var workflow = new Workflow
}
};

workflow.Compile(parameters);
var results = workflow.Execute(parameters);
// Compile with type-only parameters (no values needed at compile time)
workflow.Compile(new[] { new RuleParameter("customer", typeof(Customer)) });

// Execute with real data
var customer = new Customer { Age = 25 };
var results = workflow.Execute(new RuleParameter("customer", typeof(Customer), customer));
```

| Instead of... | RoslynRules does... |
Expand Down Expand Up @@ -185,7 +189,7 @@ JIT-only APIs throw `AotCompatibilityException` when called in AOT/trimming mode
```csharp
// This throws in AOT — compile in JIT instead
try {
workflow.Compile(parameters);
workflow.Compile(new[] { new RuleParameter("customer", typeof(Customer)) });
}
catch (AotCompatibilityException ex) {
// Message: "'Workflow.Compile' is not available in AOT/trimming mode..."
Expand Down
Loading