Skip to content

Commit f785c15

Browse files
authored
Update README.md
1 parent a76601b commit f785c15

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ An example rule:
5151
You can inject the rules into the Rules Engine by initiating an instance by using the following code -
5252

5353
```c#
54-
var rulesEngine = new RulesEngine(workflow, logger);
54+
var rulesEngine = new RulesEngine(workflow);
5555
```
56-
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.
57-
56+
Here, *workflow* is a list of deserialized objects based on the schema explained above
5857
Once initialised, the Rules Engine needs to execute the rules for a given input. This can be done by calling the method `ExecuteAllRulesAsync`:
5958

6059
```c#
@@ -92,7 +91,7 @@ exampleWorkflow.Rules = rules;
9291

9392
workflows.Add(exampleWorkflow);
9493

95-
var bre = new RulesEngine.RulesEngine(workflows.ToArray(), null);
94+
var bre = new RulesEngine.RulesEngine(workflows.ToArray());
9695
```
9796
### Entity Framework
9897

0 commit comments

Comments
 (0)