Export (0) Print
Expand All

Invoking Static Members of a Class

By default, the rule engine requires you to assert an instance of a .NET class to execute a policy that invokes a static member of the .NET class. You can modify this behavior by changing the value of the StaticSupport registry key under HKEY_LOCAL_MACHINE\Software\Microsoft\BusinessRules\3.0 to one of the values in the following table.

 

StaticSupport registry value Rule engine behavior

0

Default value. The rule engine follows the BizTalk Server 2004 model, where the static method is called only when an instance of the .NET class is asserted.

1

An object instance is not required. The static method is called when the rule is evaluated or executed.

2

An object instance is not required. The static method is called at the policy translation time if all parameters are constant. This is a performance optimization because the static method is called only once even though it is used in multiple rules in conditions. Note that static methods used as actions will not be executed at the translation time, but static methods used as parameters may be executed.

Adding and Changing the StaticSupport Registry Key

If you do not see the StaticSupport registry key under HKEY_LOCAL_MACHINE\Software\Microsoft\BusinessRules\3.0, you should add it by performing the following steps.

To add the StaticSupport registry key

  1. Click Start; click Run, type RegEdit, and then click OK.

  2. Expand HKEY_LOCAL_MACHINE, expand Software, expand Microsoft, expand BusinessRules, and then select 3.0.

  3. In the right pane, right-click, point to New, and then click DWORD value.

  4. For Name, type StaticSupport.

If the StaticSupport registry key already exists, and you need to change its value, perform the following steps.

To change the value of the StaticSupport registry key

  1. Click Start, click Run, type RegEdit, and then click OK.

  2. Expand HKEY_LOCAL_MACHINE, expand Software, expand Microsoft, expand BusinessRules, and then expand 3.0.

  3. Double-click the StaticSupport registry key, or right-click it and then click Modify.

  © 2009 Microsoft Corporation. All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft