Skip to content

Commit 28dde38

Browse files
authored
Update create-rules-engine-project.md
Code alignment
1 parent 925c160 commit 28dde38

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

articles/logic-apps/rules-engine/create-rules-engine-project.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ To reuse existing rules from Microsoft BizTalk Server, you can export them. Howe
304304
if(ruleSet == null)
305305
{
306306
// Log an error in finding the rule set
307-
this.logger.LogCritical($"RuleSet instance for '{ruleSetName}' was not found(null)");
308-
throw new Exception($"RuleSet instance for '{ruleSetName}' was not found.");
307+
this.logger.LogCritical($"RuleSet instance for '{ruleSetName}' was not found(null)");
308+
throw new Exception($"RuleSet instance for '{ruleSetName}' was not found.");
309309
}
310310
```
311311

@@ -326,18 +326,14 @@ To reuse existing rules from Microsoft BizTalk Server, you can export them. Howe
326326
```csharp
327327
// Create rule engine instance
328328
var ruleEngine = new RuleEngine(ruleSet: ruleSet);
329-
330329
// Create a typedXml Fact(s) from input xml(s)
331330
XmlDocument doc = new XmlDocument();
332331
doc.LoadXml(inputXml);
333332
var typedXmlDocument = new TypedXmlDocument(documentType, doc);
334-
335333
// Initialize .NET facts
336334
var currentPurchase = new ContosoNamespace.ContosoPurchase(purchaseAmount, zipCode);
337-
338335
// Provide facts to rule engine and run it
339336
ruleEngine.Execute(new object[] { typedXmlDocument, currentPurchase });
340-
341337
// Send the relevant results(facts) back
342338
var updatedDoc = typedXmlDocument.Document as XmlDocument;
343339
```

0 commit comments

Comments
 (0)