Replies: 1 comment 2 replies
-
Is there a reason why the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are upgrading a CSLA 5 codebase to CSLA 6, and eventually the current CSLA version. We have a ReadOnlyBase class that currently takes a BusinessBase class as a parameter. The BusinessBase is a configuration class that drives how our product interacts with an ElasticSearch API. The ReadOnlyBase class is a "status" class that tests the functionality of the configuration and sets properties to advise the user which functions actually work and which will cause problems.
In CSLA 5, this worked great. With CSLA 6, the remote data portal is invoking a RevalidatingInterceptor, which is raising an error because the BusinessBase class is not valid. The status class needs to be evaluated on the server because the API calls to ElasticSearch always happen on the server. The client may not have network visibility to the Elasticsearch API.
I could remove the default interceptor, but I'm not sure if that is going to cause problems in standard usage scenarios. I could change the design to not pass the invalid BusinessBase, but that will be introducing a lot of complexity to what is currently straightforward code.
Can anybody offer an opinion on the potential downsides of not having the interceptor in place?
Beta Was this translation helpful? Give feedback.
All reactions