Possible to default back to factory method, in case of L2 cache serialization exceptions. #595
Answered
by
jodydonetti
martinhansen
asked this question in
Q&A
|
During deployment of services, classes might change, (removed properties, renamed properties, added properties) - and thus might experience serialization exceptions, without ever invoking the factory method. Basically, I would like for exceptions thrown by the cache integration, to be handled as if the entry was not present, and continue with the factory method (and overwrite the existing cache entry, if factory method returns something proper) I have not found a way of doing this nicely, but maybe I'm overlooking some options/configurations in |
Answered by
jodydonetti
Feb 5, 2026
Replies: 1 comment 1 reply
|
Hi @martinhansen you can use Hope this helps, let me know. |
1 reply
Answer selected by
martinhansen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @martinhansen you can use
ReThrowSerializationExceptions, see here.Hope this helps, let me know.