Possible to default back to factory method, in case of L2 cache serialization exceptions. #595
-
|
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @martinhansen you can use Hope this helps, let me know. |
Beta Was this translation helpful? Give feedback.
Hi @martinhansen you can use
ReThrowSerializationExceptions, see here.Hope this helps, let me know.