You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.
The application has a workflow that has a property named Discount.
The workflow contains three rules named RuleA, RuleB, and RuleC.
The RuleA rule has the following expression: "IF this.Discount > 10 THEN this.Discount = 10"
The RuleB rule has the following expression: "IF this.OrderAmount > 2000 THEN this.IncreaseDiscountBy(10) "
The RuleC rule has the following expression: "IF this.Items.Count > 10 THEN this.IncreaseDiscountBy(5) "
The rules have the same priority and the rule set uses Full Chaining.
You write the following code segment for the workflow. (Line numbers are included for reference only.) 02 private void IncreaseDiscountBy(int amt)
03 {
04 Discount += amt;
05 }
You need to ensure that the RuleA rule is re-evaluated after the execution of the RuleB rule or the RuleC rule.
Which code segment should you insert at line 01?
A.
[RuleRead("Enabled")]
B.
[RuleRead("Discount")]
C.
[RuleWrite("Discount")]
D.
[RuleInvoke("Enabled")]