What Changed
The WebApiMiddleTierClientSecurity
constructor now has an additional parameter of the IServiceProvider
type:
C#public WebApiMiddleTierClientSecurity(WebApiSecuredDataServerClient webApiSecuredClient, IServiceProvider serviceProvider)
Reasons for Change
This change has been made to address the following issue: T1147982 - Security.Blazor - "ValueManagerContext.Storage is null" error occurs when a custom function criteria operator is not processed by the SecurityFunctionPatcher logic.
Impact on Existing Apps
This change would affect your project if you added a Middle Tier Server to an existing XAF WinForms application. If you used the XAF application builder to set up an XAF WinForms application, or if you used XAF Solution Wizard for v22.1 or later to create a new XAF WinForms application with a Middle Tier Server, this change should not affect you in any way.
How to Update Existing Apps
-
If you are creating a
WebApiMiddleTierClientSecurity
object manually, as described in the Middle Tier Server article, no security services will be created, and security events (for example,OnCustomizeSecurityCriteriaOperator
) will not be available. In this case,IServiceProvider
is not required. Note, however, that in this case,IServiceProvider
will not be available through theSession.ServiceProvider
property within the business object implementation on the client side. -
Use the XAF application builder to set up an XAF WinForms application.