From f785c15f03f7179ceb18418b58804dd8fb089784 Mon Sep 17 00:00:00 2001 From: Abbas Cyclewala Date: Thu, 6 Oct 2022 10:52:00 +0530 Subject: [PATCH] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cc967e4b..53f5020b 100644 --- a/README.md +++ b/README.md @@ -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# @@ -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