Any Xperience version of RecursionControl?

2025/03/12 2:52 PM

While doing Recursion control checks with cascading events is not great (I'll eventually be coding all of that out), however I'm working on migrating some old code that did rely heavily on RecursionControl. Is there any Xperience by Kentico RecursionControl? It's currently Sealed in the source code. Not sure if the ObjectEventArgs.CurrentHandler is suppose to replace it, very little documentation on how it would work.


Environment

  • Xperience by Kentico version: 30.2.0
  • .NET version: 8
  • Execution environment: Local

Answers

2025/03/13 1:53 PM

I've decided to instead of trying to shoe-horn the old into the new, to just create my own ICustomInfoProvider<T> where T : BaseInfo interface that has an Async Set, SetMass, Update, UpdateMass, Delete, and DeleteMass operations which is where I'll put all my Before/After operations, and use this interface for CUD operations, and only use Global Events for things where the Kentico CMS may 'do' stuff automatically.

Should be cleaner, and then I won't need recursion controls anymore.

To answer this question, you have to login first.