Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abbasc52 authored Oct 6, 2022
1 parent a76601b commit f785c15
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ An example rule:
You can inject the rules into the Rules Engine by initiating an instance by using the following code -

```c#
var rulesEngine = new RulesEngine(workflow, logger);
var rulesEngine = new RulesEngine(workflow);
```
Here, *workflow* is a list of deserialized objects based on the schema explained above and *logger* is a custom logger instance made out of an [ILogger](https://github.com/microsoft/RulesEngine/wiki/Getting-Started#logger) instance.

Here, *workflow* is a list of deserialized objects based on the schema explained above
Once initialised, the Rules Engine needs to execute the rules for a given input. This can be done by calling the method `ExecuteAllRulesAsync`:

```c#
Expand Down Expand Up @@ -92,7 +91,7 @@ exampleWorkflow.Rules = rules;

workflows.Add(exampleWorkflow);

var bre = new RulesEngine.RulesEngine(workflows.ToArray(), null);
var bre = new RulesEngine.RulesEngine(workflows.ToArray());
```
### Entity Framework

Expand Down

0 comments on commit f785c15

Please sign in to comment.